Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Developer's Guide


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.

Figure 5‒2: Example of debugging service templates

[Figure]

  1. 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.

  2. Specify the definition information for the service, and click Run.

    The Debug view and the service template debugging view appear.

  3. 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).

  4. 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.

  5. In the Debug view, click Rerun to execute the processing of Plug-in A.

  6. Check the results of Step A in the Debug view, Flow view, and Task Log tab.

  7. 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.

  8. 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.

  9. In the Debug view, click Rerun to execute Step B.

    The processing of Plug-in B is skipped and Step B finishes executing.

  10. In the Flow view, make sure that Step C has begun executing according to the subsequent-step execution condition of Step B.

  11. In the Debug view, click Rerun to execute the processing of Plug-in C.

    The debug tasks ends normally.

  12. To meet Objective 4, check the execution results of Step C in the Debug view, Flow view, and Task Log tab.

  13. In the service template debugging view, click End Debug.

    The service template editing view appears.

  14. Amend the property mapping settings of Step A.

  15. After saving the service template, build the service template again and begin the debug process.

Related topics