Skip to main content
Question

How does SystemCaller trigger a Failure in Automation?


nicholas
Contributor
Forum|alt.badge.img+11

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.

2 replies

nielsgerrits
VIP
Forum|alt.badge.img+54

I think you are looking for the Terminator?


nicholas
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • November 26, 2024

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


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