Hitachi

uCosminexus Service Platform Reference Guide


1.1.3 Configuration of the Debug Business Process screen

The following shows the configuration of the window used for debugging business processes.

Figure 1‒3: Configuration of the Debug Business Process screen

[Figure]

Organization of this subsection

(1) Debug view

The Debug view displays the name of the business process being debugged and the name of the interrupted activity. The Debug view also performs operations such as step execution, restart, and termination.

Figure 1‒4: Debug view

[Figure]

The Debug view displays the following icons:

Table 1‒1: Debug view icons

Icon

Name

Explanation

[Figure]

Debug configuration

Displays the name specified in the Debug dialog [HCSC-BP].

[Figure]

Business process

Displays the name of the business process during debug.

[Figure]

Process instance#

Displays the name of the process instance.

[Figure]

Activity

Displays the name of the interrupted activity.

[Figure]

HCSC server

Displays the HCSC server normally.

[Figure]

Step in

Performs step execution and restart of the interrupted activity.

For details about the processing during step in, step over, step return, and restart, see the contents related to debugging of business processes in the manual Service Platform Basic Development Guide.

[Figure]

Step over

[Figure]

Step return

[Figure]

Restart

[Figure]

End

Debugging of the business process ends.

#

If the processing of the process instance is interrupted, the [Figure] icon appears. If the process instance is being processed, the [Figure] icon appears.

(2) Variable view

Use the Variable view for checking the variables and correlation sets currently in use in the business process, and also for updating the value of the variables.

Figure 1‒5: Variable view

[Figure]

Name

Displays the names of the variables ([Figure]) and correlation sets ([Figure]).

Value

Displays the value of the variables and correlation sets. When the value of a variable changes due to the execution of a business process, and when the value of a variable is updated, the Name and Value cells of the variable with the changed value appear in Yellow color. If a variable is not initialized, <uninitialized> is displayed. Note that if the name of the variable and correlation set is the same in both the executing scope and parent scope, the variable view displays the variable and correlation set of the executing scope.

(3) Break point view

Use the Break point view for enabling or disabling the break point settings:

Figure 1‒6: Break point view

[Figure]

The break point set in an activity is displayed in the business-process-name [activity-name] format. If you have specified a conditional expression in the break point, the break point is displayed in the business-process-name [activity-name]:conditional-expression format.

Select the checkbox to enable a set break point. Deselect the checkbox to disable a set break point.

Note that you cannot use the functionality for skipping all break points ([Figure]), when debugging a business process.

(4) Business process editor

The business process editor displays the business process during debug.

Figure 1‒7: Business process editor

[Figure]

If the processing of the process instance interrupts, the interrupted activity appears in Green color.

Note that a mark indicating the break point appears in an activity in which you have specified a break point. If the break point is enabled, the mark is selected as shown in the following figure. If the break point is disabled, the mark is deselected.

Figure 1‒8: Activity in which a break point is specified

[Figure]

(5) HCSC automatic emulation view

Use the HCSC automatic emulation view, when setting automatic emulation of a service.

Figure 1‒9: HCSC automatic emulation view

[Figure]

Valid

Select the checkbox to enable the automatic emulation settings of the service.

Priority

Displayed in the order of 1, 2, 3, ... starting from the first line.

Service name

If you select a cell, a list of services that can be selected appears as a drop down list.

Operation name

If you select a cell, a list of operations of the service selected in Service name appears as the drop down list.

Response type

If you select a cell, you can select a normal response or fault response from the drop down list.

Response message

If you select a cell, the ... button appears. If you click the ... button, a dialog for setting the response message appears. If the response message is already set up, the file name of the response message appears.

Condition

Enter the conditional expression for emulating the service in XPath. Note the following points for entering the conditional expression:

  • You need not specify the variable name to set up the conditions for the request message of the service.

  • You cannot use blank characters (0x00) and extension functions, such as csc:getVariableData.

  • If the conditional expression is not specified, true is assumed always.

Add button

Adds rows to the table.

Delete button

If you select a cell and click the Delete button, the row containing the selected cell is deleted.

Up button

Increases the priority order of the selected row.

Down button

Decreases the priority order of the selected row.

Save button

Displays the dialog for saving the information set up in the HCSC automatic emulation view.

Load button

Displays the dialog for acquiring the information set up in the HCSC automatic emulation view.

(6) HCSC emulation view

Use the HCSC emulation view, when setting and executing manual emulation of the service.

Figure 1‒10: HCSC emulation view

[Figure]

Response type

If you select a cell, a drop down list appears and you can select a normal response or a fault response.

Response message

If you select a cell, the ... button appears. If you click the ... button, a dialog for setting the response message appears. If the response message is already set up, the file name of the response message appears.

Add button

Adds rows to the table.

Delete button

If you select a cell and click the Delete button, the row containing the selected cell is deleted.

Restart button

The service is emulated, and then debugging of the business process restarts.

Step over button

The service is emulated, and then step over of debugging of the business process occurs.

Save button

Displays the dialog for saving the information set up in the HCSC emulation view.

Load button

Displays the dialog for acquiring the information set up in the HCSC emulation view.

(7) HCSC XPath evaluation view

Use the HCSC XPath evaluation view, when evaluating the conditional expression of the switch start and assign activities.

Figure 1‒11: HCSC XPath evaluation view

[Figure]

XPath expression

Enter the conditional expression in XPath. Note the following points while entering the conditional expression:

  • You cannot use blank characters (0x00).

  • You cannot perform equivalence judgment of values included in linefeed.

    For example, the value of element /y/z of the variable x is assumed as follows:

    "a
    b"

    At this stage, even if you execute XPath evaluation with the following XPath expression, the evaluation result is not true:

    $x/y/z="a
    b"

    This can be avoided by using the normalize-space() function of XPath to remove a linefeed character and space.

Evaluate button

Evaluates the conditional expression entered in the XPath expression.

Evaluation result

Displays the evaluation result of the conditional expression entered in the XPath expression.

(8) Outline view

The outline view displays the names of the variables and activities defined in a business process that is being debugged.

Figure 1‒12: Outline view

[Figure]