Skip to main content
Solved

What is the best way to interrupt the start of a workspace in the automation chain?

  • March 28, 2022
  • 2 replies
  • 36 views

aguan
Supporter
Forum|alt.badge.img+11
  • Supporter
  • 140 replies

Suppose I have two workspaces A, and B that run sequentially in a scheduled job. I want to start B if A actually runs through and writes something to the writer. If nothing writes in A, I don't want B to start at all. I could think of a few ways to do it, but all require writing intermediate status data to an external file or database. Should there be a simpler way to do this in the FME server automation (I am at 2021.1.2)? Is it possible to do this in the startup python script - if a condition is not met, terminate the workspace?

Best answer by david_r

The easiest is to simply to use the Terminator transformer in the workspace, which will trigger the Failure output port of the automation action, rather than the Success output port.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • March 28, 2022

The easiest is to simply to use the Terminator transformer in the workspace, which will trigger the Failure output port of the automation action, rather than the Success output port.


aguan
Supporter
Forum|alt.badge.img+11
  • Author
  • Supporter
  • 140 replies
  • March 28, 2022

@david_r, that is no more simpler. Thanks.