Skip to main content
Question

Start FME process within another process


Forum|alt.badge.img

Hi everyone,

I want to start an FME process within another (using the "workspace runner"), but not before the writer of the first process is done. I have tried to trigger the second process with the "creator" transformer and the switch "Create At End: yes", but the second process still starts to early. Does anybody has a solution for this?

Best regards,

 

Ron

6 replies

geosander
Forum|alt.badge.img+7
  • March 1, 2016

You could create a wrapper workspace that fires both workspaces after each other using 2 WorkspaceRunner transformers, or use a batch script to fire both after each other. If you have FME 2016, you can also use the new FeatureWriter to write your features first and then connect the WorkspaceRunner to the Summary port.


davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • March 1, 2016

If you have access to FME 2016, use the FeatureWriter Transformer instead of an actual writer. Then use the feature that exits the summary port to trigger the WorkspaceRunner, as I believe the summary feature only exits when the writing has finished. Alternatively, just place a FeatureHolder between the FeatureWriter and the WorksapceRunner.

Good luck.


Forum|alt.badge.img
  • Author
  • March 1, 2016

Thank you both for your quick answers. Unfortunately, I only have FME 2015 (1.2.1). The wrapper workspace is a good idea, but the thing is I have ~80 FME processes and in each one of them I have to include a workspace runner, pointing to the same extern FME process. To build a wrapper for each would be very time-consuming.

Any other Ideas?


geosander
Forum|alt.badge.img+7
  • March 1, 2016
ronk wrote:

Thank you both for your quick answers. Unfortunately, I only have FME 2015 (1.2.1). The wrapper workspace is a good idea, but the thing is I have ~80 FME processes and in each one of them I have to include a workspace runner, pointing to the same extern FME process. To build a wrapper for each would be very time-consuming.

Any other Ideas?

That's why I also mentioned the batch script (*.cmd/*.bat file).

 

You can fire FME processes through the command line (look at the top of the log of any workspace to see an example) and daisy-chain them together like that. You can even use Excel or Python (or FME! :)) to help you generate the script with all the published parameters.

Forum|alt.badge.img
  • Author
  • March 1, 2016
geosander wrote:

That's why I also mentioned the batch script (*.cmd/*.bat file).

 

You can fire FME processes through the command line (look at the top of the log of any workspace to see an example) and daisy-chain them together like that. You can even use Excel or Python (or FME! :)) to help you generate the script with all the published parameters.

thank you :) I will try that.


mark2atsafe
Safer
Forum|alt.badge.img+44

I think the only way to be sure is to use a shutdown script. Either use a system command to run the next workspace or the iFMEWorkspaceRunner method using FME objects. But as the others have said, in 2016 the FeatureWriter is designed to solve this scenario.


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