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?
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.