Solved

Run second workbench once first is completed


Hi FME Experts,

 

I am trying to use the "WorkspaceRunner" transformer to run workbench based on the other one.

in the first workbench I used the creator transformer the WorkspaceRunner, it gives me it is run successfully but it the caching is still updating at the same time also (snapshot).

Anyone can help me with that?

icon

Best answer by markatsafe 26 March 2019, 16:11

View original

7 replies

Badge +10

Do you have 'Wait for Job to Complete' in the workspace runner set to Yes?

Do you have 'Wait for Job to Complete' in the workspace runner set to Yes?

@egomm

I tried the both, the same thing, and how much time I shall wait to see the output for the second workbench?

Badge +2

@gisuser I was able to reproduce the symptoms you're reported, it looks like there is a problem with Feature Caching. I think your job has completed successfully. Try running the job with feature caching OFF. Add a Inspectors after the WorkspaceRunner so you can check the results.

This has been fixed in FME 2019

Badge +3

@gisuser

 

Hi,

I do that by using a counter and statisticscalculator to get the max of the counter prior to the WS_Caller and after the caller I use a counter and then tester to test for count= max.

This I use as a trigger.

Now you can run anything from the passed port of the tester.

In this pic I read datasets (using a feature reader) that are created in the workspace called.

@gisuser I was able to reproduce the symptoms you're reported, it looks like there is a problem with Feature Caching. I think your job has completed successfully. Try running the job with feature caching OFF. Add a Inspectors after the WorkspaceRunner so you can check the results.

This has been fixed in FME 2019

Thank you @markatsafe

 

But I feel the problem in the transformer itself because the data that should be updated (the result for workbench 2 ) does not update, while when I am trying to run the second workbench separately it is run successfully and get the expected result.

@gisuser

 

Hi,

I do that by using a counter and statisticscalculator to get the max of the counter prior to the WS_Caller and after the caller I use a counter and then tester to test for count= max.

This I use as a trigger.

Now you can run anything from the passed port of the tester.

In this pic I read datasets (using a feature reader) that are created in the workspace called.

Hi @gio

Thank you, but it seems I didn't catch your idea.

the problem I feel that maybe I did not understand the transformer itself.

Badge +2

Thank you @markatsafe

 

But I feel the problem in the transformer itself because the data that should be updated (the result for workbench 2 ) does not update, while when I am trying to run the second workbench separately it is run successfully and get the expected result.

@gisuser I think that is a separate issue to the Feature Caching. If your child workspace is not running correctly then it's likely to be a problem with the way you're passing parameters from the WorkspaceRunner or something along those lines. It's tedious to debug these parent / child workspace issues. Check the log file of the child workspace - it may give you a clue on why it is not running correctly

Reply