5.3.3 Example of service template debugging
When debugging a service template, users need to adjust various settings according to the aspects of the service template they want to check.
An example of the operations a user performs when debugging a service template is shown below.
This example describes the procedure for debugging a service template in the following scenario:
Issues with service template being debugged
- Issue 1:
-
There is an issue with the mapping between a service property and an input property of Step A.
User objectives
- Objective 1:
-
To check the execution results of other steps before amending the service template.
- Objective 2:
-
To check the processing of Plug-in A.
- Objective 3:
-
To prevent the processing of Plug-in B from being executed.
- Objective 4:
-
To check the results of Plug-in C.
|
-
As indicated by Objective 3, there is a plug-in within the flow that the user does not want to execute. Therefore, the user needs execution of the debug task to pause between steps. To achieve this, select Interrupt After Each Step from the Interruption Settings list box in the Perform Debugging dialog box.
-
Specify the definition information for the service, and click Run.
The Debug view and the service template debugging view appear.
-
In the Debug view, check the value of Input property A in Step A. Make sure that the value of Input service property 1 has been mapped correctly in the Properties tab.
Through this process, you can identify the problem with the input property mapping of Step A (Issue 1).
-
To check the processing of Plug-in A when the value of the input property is set correctly (Objective 2), change the value of input property A in the Debug view.
-
In the Debug view, click Rerun to execute the processing of Plug-in A.
-
Check the results of Step A in the Debug view, Flow view, and Task Log tab.
-
To check the execution results of the other steps (Objective 1), you need to advance the processing of the debug task. In the Flow view, select Step B.
-
To skip the processing of Plug-in B (to meet Objective 3), from the Execution Settings list box in the Debug view, select Do not execute the plug-in processing.
-
In the Debug view, click Rerun to execute Step B.
The processing of Plug-in B is skipped and Step B finishes executing.
-
In the Flow view, make sure that Step C has begun executing according to the subsequent-step execution condition of Step B.
-
In the Debug view, click Rerun to execute the processing of Plug-in C.
The debug tasks ends normally.
-
To meet Objective 4, check the execution results of Step C in the Debug view, Flow view, and Task Log tab.
-
In the service template debugging view, click End Debug.
The service template editing view appears.
-
Amend the property mapping settings of Step A.
-
After saving the service template, build the service template again and begin the debug process.
Related topics