Using Conditions and Switch Steps in Processes

Conditions and switch steps can be used in processes to enable dynamic decision making within the processes.

Conditions

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:

Success

The process completed successfully. When set, the connection is green.

Failure

The process did not finish successfully. When set, the connection is red.

Always

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.

Process with Switch Step

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.

Process with Switch Step

Note:

Run WLDeploy has success and fail conditions. See the Deployment Automation Plugins Guide for more information.

Switch steps are processed as follows:

Note: By default, Deployment Automation resolves expressions in Set and Switch steps, but you can configure the server so that it doesn't. For details, refer to Knowledgebase item S141763.