Question

Feature Read/Write count in FME Server response

  • 18 December 2017
  • 3 replies
  • 5 views

Badge

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?


3 replies

Userlevel 6
Badge +32

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.

Badge

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.
Userlevel 6
Badge +32
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