Creating a Switch Node
To Create a Switch Node in Your Business Process
- On the Application tab, click the business process (JPD file) you want to design.
Your business process is displayed in the Design View.
- If the Palette is not visible in WebLogic Workshop, choose View —> Windows —> Palette from the WebLogic Workshop menu.
- Click
Switch in the Palette.
- Drag and drop the Switch node onto the business process in the Design View, placing it on the business process at the point in your business process that requires branching to one of several possible paths of execution, based on the evaluation of one or more conditions.
The Design View is updated to contain a Switch node, as shown in the following figure:
Note the following characteristics of the Switch node:
- Adding a Switch node to a business process adds, by default, a single Switch node, a Case node, and a Default node.
- You can add one or more additional Case nodes. To do so, right-click on the Switch node and select Add Case from the drop-down list, or click the
on either side of the Case tree.
At run time, the case branch which matches the received data on the node is executed. If no matching case is found, the default path is executed.
- You can change the name of the Switch node and each Case in a Switch node. To do so, double-click the name assigned to the Case or Switch node and enter a new name.
-
indicates that the design of this node is incomplete. When you complete the design of the node,
is replaced by
. A Switch node is completed when the condition and all cases are fully configured.
- A Switch node is, in effect, a group of nodes. You can view and edit the properties of your Switch node by clicking the outline of the group to select it, then viewing the group properties in the Property Editor. To learn about groups, see Grouping Nodes in Your Business Process.
Related Topics
Designing a Switch Node