Defining step transitions in an activity
Use the blue Jump button to open a pop-up dialog, and identify transitions, optional fields that can end iteration, terminate the activity, or cause control to jump to a later (higher-numbered) labeled step. Use transitions to specify conditions that are evaluated after the method in the step is performed, but before the execution continues with other steps.
Often a transition condition tests whether the method in the current step was successful. See How to test method results using a transition for more on this use of transitions.
Use the add row and delete row icons to define the condition. Order is significant. You can rearrange the order by selecting the row number and dragging it up or down. Click OK to save your edits and close the dialog.
Field | Description | |
Enable conditions after this action | Select to activate the transition. If this box is not selected, all rows of the transition are hidden and are ignored at run time. The gray Jump button is available. | |
On exception, Jump to a later step label: | Optional. If you anticipate that this method might cause a Java exception, enter the label of a higher-numbered step to execute next. This can prevent users from seeing any evidence of the exception, such as the red X. This setting does not apply if an exception occurs in a precondition to the step. | |
When | Identify a when condition rule that the transition is to evaluate.
Alternatively, enter an expression that
returns true or false, starting with =. Click the Open icon to review or update the when condition rule. Click to start the Expression Builder.
| |
If True |
Select which action the system is to take when the when condition or conditions evaluate to true. Complete both an
If True
and
If False
option for each row.
|
Jump to Later Step
for the
If True
field, enter the label of a higher-numbered step to jump to.
If the
If True
value is
Jump to Later Step
and the transition is true, but this field is empty, a Java exception occurs.
Jump to Later Step
for the
If False
field, enter the label of a higher-numbered step to jump to.
If the
If False
value is
Jump to Later Step
and the transition is false, but this field is empty, a Java exception occurs.
Previous topic Activity form - Completing the Steps tab - Entering preconditions Next topic Repeating steps in an activity