Skip to main content
Question

Feature Read/Write count in FME Server response

  • December 18, 2017
  • 3 replies
  • 39 views

Forum|alt.badge.img

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

nielsgerrits
VIP
Forum|alt.badge.img+64

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.


Forum|alt.badge.img
  • Author
  • December 18, 2017

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.

nielsgerrits
VIP
Forum|alt.badge.img+64
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.