uCosminexus Service Platform, Basic Development Guide

[Contents][Glossary][Index][Back][Next]

5.6.14 Switch Activities

These activities define switching of the processing of a business process according to the condition determination result. Switch activities include switch start and switch end activities. You deploy a switch start activity at the switch start location and a switch end activity at the switch end location.

The following figure shows process switching using switch activities.

Figure 5-15 Process switching using switch activities

[Figure]

Several processes are provided under the switch start activity, and switching occurs according to the condition set in the switch start activity and the condition determination result. A switch end activity is deployed at the termination of the switch.

A process that branches from the switch start activity and ends in a throw activity need not be connected to the switch end activity. If all processes that branch from the switch start activity end in throw activities, there is no need to deploy a switch end activity.

Organization of this subsection
(1) Defining the switch start activity
(2) Defining the switch end activity
(3) Process when system exception occurs in the activity
(4) Notes on definition

(1) Defining the switch start activity

To define the switch start activity:

  1. Deploy a switch activity on the canvas.
    For details about how to deploy activities, see 5.4.1 Deploying Activities.
  2. Deploy an activity that becomes the link destination of the switch activity on the canvas.
    For details about how to deploy activities, see 5.4.1 Deploying Activities.
  3. Link the switch activity to the activity at the link destination.
    For details about how to link activities, see 5.4.2(2) Link setting method.
  4. Use one of the following methods to open the Switch Activity dialog box:
    • Double-click a switch activity on the canvas.
    • Choose and right-click a switch activity on the canvas, and choose Setting.
    The Switch Activity dialog box opens.
  5. Enter the necessary information in the Switch Activity dialog box.
    For details about the display and input contents of the Switch Activity dialog box, see the manual Cosminexus Service Platform Reference.
    To set a switch condition, click Condition Setting. The Condition Setting dialog box opens. In this dialog box, you can set a switch condition. Specify a condition for each link destination. Enter the switch conditions as XPath expressions. For details about the Condition Settings dialog box, see the manual Cosminexus Service Platform Overview.
  6. Click OK.

(2) Defining the switch end activity

To define the switch end activity:

  1. Deploy a switch activity on the canvas.
    For details about how to deploy activities, see 5.4.1 Deploying Activities.
  2. Link the switch activity to the link source activity.
    For details about how to link activities, see 5.4.2(2) Link setting method.

(3) Process when system exception occurs in the activity

You can send the system exception occurring in the activity, by transforming to general fault. For details, see "4.7 General fault for transforming the system exception to fault" in the "Service Platform Function Guide".

(4) Notes on definition

#1
For details about connection that uses the start activity as the source and connection that uses the start point of fault handling of an activity as the source, see Figure 5-26 Connection example.

#2
Excludes a case in which the termination points of all switch processes are throw activities.