Rational Developer for System z

Fault messages for a flow

The fault message of a flow is a single message that describes the output parameters that the flow returns to an invoking program when the flow ends abnormally.

A fault message is optional for a flow. You can have multiple fault messages.

If you have included a Throw node in your flow and you want to return data to the invoking program using a different data structure than the structure defined by the output message, then you can create a fault message to describe that data that is returned.

The steps for creating and using a fault message are very similar to the steps for creating and using an output message (see The output message of a flow). The main differences are:

  1. In the operations editor, store a reference to the new fault message into the Faults section of the interface operation.

  2. Insert an Assign node into the node immediately before the Throw node, and in the Assign node copy the output data into fault message.


Feedback