Calling another service from a client-side human service

You can call a IBM® BPM service from within your client-side human service by adding an activity to the service flow. This activity calls another service that you can specify. The called service cannot be another client-side human service or a heritage human service.

About this task

The services that you can call from the client-side human service include Advanced Integration services, Ajax services, Decision services, General System services, IBM Case Manager Integration services, or Integration services. For more information, see Service components in Process Designer.

To call another service from a client-side human service, complete the following steps:

Procedure

  1. Open the appropriate process application in the Designer view.
  2. In the Process Designer library, click User Interface and open the client-side human service that you want to work with, or build a client-side human service as described in Building a client-side human service. The client-side human service opens in the web editor.
  3. In the Diagram view, use the Service tool Service tool from the palette to add an activity to the service flow, and wire it as required.
  4. Click the new activity in the client-side human service diagram to open the activity. In the Properties view, in the Implementation tab, click Call a service and specify the service to be called by the selected activity.
    Note: If the client-side human service is used as an instance details user interface for a BPD or case type, the Implementation tab provides the following options under Behavior > Work with the process or case instance variables:
    • Refresh the instance variables: If updates to the instance variable values are made at run time, you can select this option to update the client-side human service variables with the latest values in the process or case instance variables.
    • Send variable updates to the instance: If your client-side human service modifies the values of its input variables at run time, you can select this option to update the process or case instance variables with the latest values in the client-side human service.
    • Map input data automatically: Select this option if you want the input variables be mapped automatically in the client-side human service, or clear the check box and go to the Data Mapping tab in the Properties view to enter the data mapping yourself.
    For more information, see Creating user interfaces for a BPD or Creating case user interfaces.
    Tip: The option Work with the process or case instance variables is also available when the client-side human service is used as a task for a BPD or case type. For tasks, only the Refresh the instance variables option is available for selection.
  5. On the Data Mapping tab, set the input and output mapping for the service-calling activity.
  6. Click Save all to save the configuration of the client-side human service.