Solved

Output attributes of a workspacerunner

  • 14 July 2016
  • 2 replies
  • 48 views

Badge

Dear all,

I have a (parent) workflow that uses an Excel file as input. The file contains string values which are used to query an API on the internet. Every record contains a different querystring. The actual calls are made by a workspace which is used as a workspacerunner (see the first image).

In that workspace I have exposed returned fields as attributes (see the second image). The problem I am having is that I expext a number of attributes coming out of the workspacerunner, but I only get two, which are the input attributes of the workspacerunner. How do I make the workspacerunner spit out the right attributes?

icon

Best answer by david_r 14 July 2016, 12:23

View original

2 replies

Userlevel 5

The WorspaceRunner does not transmit the attributes (or features) that where created in the child workspace, it only transmits whatever went into it (initiating features).

If your parent workspace needs to access the features created inside a child workspace, you will have to store them to some intermediate file format (FFS could be a good choice) and then pick them up after the WorkspaceRunner, e.g. with a FeatureReader.

Badge

That did the trick, especially the Featurereader! Thank you.

Kind regards,

Pim

Reply