Transitions
- Last UpdatedJan 27, 2023
- 3 minute read
Transitions are a type of procedure element (control) that you can add into a Recipe Template Procedure to control the flow of execution at runtime. A transition consists of a unique alias (within a procedure), a description, and an expression.
NOTE: With transition logic, you construct a Boolean expression to be evaluated. If the expression evaluates to True, the processing of the Recipe moves to the point below the transition logic. If the expression evaluates to False, the Recipe processing stops and waits for the transition logic to evaluate to True.
Inserting a Transition
You can insert a transition into any of the procedure sequences in the Procedure container window.
To insert a Transition
-
Open the Recipe Template editor and navigate to the Procedure tab.
-
In the Procedure container, drag the transition from the Flow Controls library to the sequence where you want to add the transition. The transition is added to the procedure. If you drop a transition on top of procedure token, the dropped transition is placed in the procedure before that procedure token.
NOTE: When a transition or a procedure control with transition (Loop or Execute one) is added to the Procedure container, a warning icon is displayed over the main transition bar – to indicate that its Expression has not been set, and the tooltip message: "Expression is not set" is displayed when you move the mouse over the warning icon. The warning icon is cleared after the Transition expression is entered using the Transition Details dialog.
-
When a transition is inserted, it is automatically assigned a unique alias name. You can edit the alias as required. However, the alias must be unique. If it is not, a warning message appears.
-
Select and click the transition. The Transition Details slide-in window appears. You can specify the expression in this window.
NOTE: When you select a transition, a border is added and a check mark sign appears.
-
In the Transition Details slide-in window, do the following:
-
In the Alias box, type an alias name for the transition (31 characters maximum).
-
In the Description box, optionally enter a description of the transition (120 characters maximum).
-
-
In the Variable section, the list of valid variables is displayed. These variables are listed for the current selected Equipment in the Recipe Template. For more information, see Filtering Capabilities/Variables From Equipment.
-
In the Expression section, you can define the expression using the transition logic and variables. The expression is a single logic statement that is built using operands and operators and evaluates to a true/false condition at runtime. The operands can consist of Equipment Variables (defined in Equipment configuration and linked to I/O) or static values (ex. 35.8, true, “allocated”). The operators can be one of the following (AND, OR, NOT, ==, <>, >, <, *, /, +, -). For more information regarding the operators, see the Expression Operator topic.
NOTE: When you drag a variable on to the expression control, the variable is inserted at the cursor position and the cursor position is maintained. A space may be added before and/or after the variable to maintain separation between it and anything adjacent to the cursor.
-
Click Apply and then click Close.
NOTE: If you click the Close button without clicking the Apply button, a confirmation message "Do you want to disregard the changes and continue?" appears. Click Yes to continue or click No to save the changes.
Deleting a Transition
You can remove transitions from the respective procedure sequence. When a transition is dragged to the garbage can, the garbage can is highlighted and the dragged transition is removed from the procedure container.
To delete a Transition
-
Open the Recipe Template editor and navigate to the Procedure tab.
-
In the Procedure container, drag the transition that you want to delete from the sequence to the Garbage/Delete can. A confirmation message appears.
-
Click Yes.
Moving a Transition
You can also reorder a transition in the procedure by moving it to some other location within the procedure container just by dragging and dropping the transition from one place to another.