Skip to main content

I have an Automation on FME Server, which runs a workbench and that workbench runs a SystemCaller which runs a python script.

Occasionally, the python script fails to run, and I want this failure to be recognised by the Automation, so that it sends me an email stating that it has failed.

How do I do this?

I can see how to set up the SystemCaller so that the Output Exit Code Attribute has a value of nonzero (representing failure)

But how does this trigger the workbench to fail inside the Automation?

I need the Automation to recognise the failure event so that it can generate an email stating that.

I think you are looking for the Terminator?


I solved this by adding a Tester just after the SystemCaller which tests the value of the Exit Code.

I then attach a Terminator (as per ​@nielsgerrits ) to the “Failed” output port of the Tester

Then in the Automation I attach an Email Action to the “Action Failed” port of the Run Workspace action


Reply