uCosminexus Service Platform, Basic Development Guide

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

9.5.6 Manual Service Emulation

This subsection explains how to set up and execute manual service emulation.

Organization of this subsection
(1) Setting up manual service emulation
(2) Executing manual service emulation

(1) Setting up manual service emulation

  1. From the Eclipse menu, select Window, Show View, and then Others.
    The Show View dialog box appears.
  2. Select Debug and then HCSC Emulate, and then click OK.
    The HCSC Emulate view appears.
    For details about the HCSC Emulate view, see 1.2.4 Debug Business Process screen in the manual uCosminexus Service Platform Reference Guide.
  3. In the Debug view, select the activity to be manually emulated.
  4. Click Add in the HCSC Emulate view.
    A row is added to the table in the HCSC Emulate view.
  5. Click the Response Type cell, and then select Normal Response or Fault Response from the drop-down list.
  6. Click the Response Message cell, and then click the ... button.
    The Select file dialog box appears.
  7. Select an XML file (for XML format)# or a file in any format (for non-XML or any format) for a response message, and then click OK.
    Service emulation is set.
    #
    You can specify only XML files where UTF-8 is specified for the XML character encoding.

To save the settings of the HCSC Emulate view to an external file, click Save in the HCSC Emulate view.

By clicking Load, you can obtain the settings saved in the external file. If settings already exist in the HCSC Emulate view, a dialog box is displayed to confirm whether to overwrite the existing settings of the HCSC Emulate view.

If you right-click the file name of a response message and then select Show file, you can open the target file.

(2) Executing manual service emulation

If you click Resume or Step Over in the HCSC Emulate view when the processing of a process instance is interrupted in an invoke service activity, the specified response message is used instead of the response message for the service.

To make fault handling interrupt the processing of a process instance when a fault response is emulated to switch from an invoke service activity to the fault handling, you need to set a breakpoint in the activity performing fault handling.