Skip to main content
Question

FMEServerJobSubmitter - is it possible to pass attributes or variable values from child back to parent?


I have a Workbench file that invokes other Workbench files (using FMEServerJobSubmitter). These called FMW's do all the work as far as reading and writing records is concerned. As a result the parent is shown to have read 0 and written 0 records. I would like to be able to pass the information on how many records are read and written by the child back to the parent and have those values appear as the number of records read and written. Is it possible to do this?

3 replies

david_r
Celebrity
  • April 17, 2018

Not really, unless you want to let the child store these values in an intermediary dataset which the parent then reads back later.

However, if you set the FMEServerJobSubmitter parameter Wait for jobs to complete = Yes, you can send the resulting attribute _numFeaturesOutput to a Cloner and then a NULL writer, which will get you some way.


tnarladni
Enthusiast
Forum|alt.badge.img+16
  • Enthusiast
  • October 17, 2018
please add this to the ideas page and I will upvote it! I like this idea as well

 

https://knowledge.safe.com/content/idea/post.html?space=153

 


richardatsafe
Safer
Forum|alt.badge.img+10

Another option would be to retrieve the child log with a REST API call, and parse the applicable information request.

https://docs.safe.com/fmerest/v3/transformations/jobs/id/42/log

https://docs.safe.com/fme/html/FME_REST/apidoc/v3/index.html#!/transformations/logText_get_15


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings