IBM BPM, V8.0.1, All platforms > Create processes in IBM Process Designer > Modeling processes > Integrating with web services, Java and databases > Create inbound integrations > Building a sample inbound integration

Attaching the undercover agent to the message event

Attach the undercover agent (UCA) to the message event.

After you create the UCA, you should go back to the message event in the BPD and attach the UCA as described in the following steps.


Procedure

  1. Open the BPD that includes the message event.

  2. Click the message event in the BPD to select it.

  3. Click the Implementation option in the properties.

  4. In the Message Trigger section, click the Select button next to the Attached UCA field and pick My UCA created in the preceding steps.
  5. Ensure that the Consume Message and Durable Subscription check boxes are enabled. (For more information about these options, see Modeling message events.)

  6. Click the Data Mapping option in the properties. Notice that the Output correlation key is automatically set to the someString variable from the UCA. The variable is used as a correlation parameter, which allows you to correlate an event recipient with a particular key.

  7. In the field next to the variable, type tw.system.process.instanceId. This sets the value of the someString variable to the ID of the running instance, which allows you to test the implementation in the Inspector.

    In this example, you are creating a UCA that uses the current process instance ID as the correlation parameter.

    For example, if you have a process application with the instance ID of 50 and another process application with the instance ID of 100, if you invoke the UCA passing an ID of 50, only the first process application receives the event.

  8. Save your work.

Building a sample inbound integration


Related information:
Understanding and using undercover agents