Skip to main content

Hi,

Can i get the Number of features read by FME workbench as like NumFeaturesOutput in response variable while running it as Jobsubmitter or Data Download Service?

I would use the an HTTPCaller to request the API to get this information, using the jobid which the Jobsubmitter returns. It's an easy GET.

https://<fmeserveradres>/fmerest/v2/transformations/jobs/id/<jobid>/result?accept=json&detail;=high

See https://docs.safe.com/fme/2016.1/html/FME_REST/v2/apidoc/

Tab API

 

GET /transformations/jobs/id/< jobid >/result Retrieve a job's transformation result

Be aware: This only works when using classic writers. When using FeatureWriters, the numFeaturesOutput are not updated, yet.

My workaround for this is to write the result summary to a dedicated database table and read that record when needed.


I would use the an HTTPCaller to request the API to get this information, using the jobid which the Jobsubmitter returns. It's an easy GET.

https://<fmeserveradres>/fmerest/v2/transformations/jobs/id/<jobid>/result?accept=json&detail;=high

See https://docs.safe.com/fme/2016.1/html/FME_REST/v2/apidoc/

Tab API

 

GET /transformations/jobs/id/< jobid >/result Retrieve a job's transformation result

Be aware: This only works when using classic writers. When using FeatureWriters, the numFeaturesOutput are not updated, yet.

My workaround for this is to write the result summary to a dedicated database table and read that record when needed.

But with this i can only get the NumFeaturesOutput i.e count of features written by workbench not the Count of features read by workbench.
But with this i can only get the NumFeaturesOutput i.e count of features written by workbench not the Count of features read by workbench.
Yes it is a bit limited. But as we have Workbench we are almost able to solve everything. Use a dedicated database table to write job summaries how you like them. Database can be Excel as well.

 

 


Reply