Skip to main content
Question

How does SystemCaller trigger a Failure in Automation?

  • March 31, 2023
  • 2 replies
  • 72 views

nicholas
Contributor
Forum|alt.badge.img+14

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+60
  • 2940 replies
  • March 31, 2023

I think you are looking for the Terminator?


nicholas
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 116 replies
  • 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