webMethods 10.2 | Service Development Help | Building Flow Services | The EXIT Step | Building an EXIT Step
 
Building an EXIT Step
Use the following procedure to build an EXIT step in a flow service
* To build an EXIT step
1. If you are inserting an EXIT step into an existing flow service, display that service in the editor and select the step immediately above where you want the EXIT step inserted.
2. Do one of the following:
*Click the button next to on the flow service editor toolbar and click .
*Click by the side of the flow service editor to open the Palette view. Click and drag it to the flow service editor.
3. Complete the following fields on the Properties view:
For this property…
Specify…
Comments
An optional descriptive comment for this step.
Label
An optional name for this specific step, or a null, unmatched, or empty string ($null, $default, blank).
Important: If you use this step as a target for a BRANCH step, you must specify a value in the Label property. For more information about the BRANCH step, see The BRANCH Step.
Exit from
The flow step from which you want to exit. Specify one of the following:
Specify
To exit from the...
$loop
Nearest ancestor LOOP or REPEAT flow step.
$parent
Parent flow step, regardless of the type of step.
$flow
Entire flow.
Label
Nearest ancestor flow step that has a label that matches this value.
Note: If the label you specify does not match the label of an ancestor flow step, the flow will exit with an exception.
Signal
Whether the exit is to be considered a success or a failure. Specify one of the following:
Specify
To...
SUCCESS
Exit the flow service or flow step with a success condition.
FAILURE
Exit the flow service or flow step with a failure condition. An exception is thrown after the exit. You specify the error message with the Failure message property.
Failure message
The text of the exception message you want to display. If you want to use the value of a pipeline variable for this property, type the variable name between % symbols (for example, %mymessage%). The variable you specify must be a String.
This property is not used when Signal is set to SUCCESS.
4. Click File > Save.

Copyright © 2017-2018 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release