Management → Managing Components → Component Processes → Component Process Step Details → Using Conditions and Switch Steps in Processes
Conditions and switch steps can be used in processes to enable dynamic decision making within the processes.
Each connection, except that from the Start step, has a conditional flag. The conditional flag enables you to set a condition on a connection. The condition refers to the processing status of the originating step. Possible flag conditions are:
The process completed successfully. When set, the connection is green.
The process did not finish successfully. When set, the connection is red.
Accept either status. When set, the connection is gray.
By default, all connections have the flag selected, meaning the originating step must successfully end processing before the target step starts processing.
To change a flag's value, select the connection and cycle through possible values by clicking the flag. You can also select the value in Properties.
A switch step is a utility step that enables you to branch a process based on the value of a property.
The following figure illustrates a switch step. In this example, the switch property is version.name. The connections from the switch step represent process branches depending on the value of version.name. In this example, regardless of which branch is taken after the switch, the process converges to the Run WLDeploy step.
Run WLDeploy has success and fail conditions. See the Deployment Automation Plugins Guide for more information.
Switch steps are processed as follows:
Copyright © 2011–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.