Terminator
From fmepedia
Terminator is a Workbench Transformer.
| Table of contents |
Description
Causes the translation to end, printing the specified message in the translation log as the reason for the termination.
This is often used to draw attention to input data conditions that should not exist. By halting the translation, there is no chance that the incorrect data will be unknowingly used.
Example
The attached workspace shows an example use of the Terminator transformer.
This example is exactly the same as the Logger Example - the difference being that the Terminator workspace terminates the translation on locating invalid data - the Logger merely records the fact of a problem feature, and does not terminate the translation because of it. In this example dates are tested for validity. Invalid dates cause the translation to be terminated. Stopping the translation at this point is preferable to having a database write fail for a forseeable problem.
Workspace Screenshot
