How to Configure Process Message

You can create low-complexity integrations between pools or different processes using the HEFLO Message exchange function.

Step 1 – Include pools in the process

Before, make sure that the process has automation feature enabled. Click on the gear icon on the top side of the process editor.

Activation of business process automationFrom the toolbox on the left side of the process editor, drag and drop two pools.

 

Step 2 – Include message events

For integration, it is necessary to configure a “Send” event, full envelope, and another to “Receive”, empty envelope. You can use elements of type task by Message, intermediate by Message or, the ones we will use in our example, end and start by Message.

  1. In the process editor, locate the “End” element in the BPMN Toolbox.
  2. Within the item “End” drag the element called “Message” to the first pool of the process, observe that the envelope is full (Send).
  3. Complete the process modeling.

In another pool include the message start:

  1. In the process editor, locate the “Start” element in the BPMN Toolbox.
  2. Within the item “Start” drag the element called “Message” to the second pool of the process, observe that the envelope is empty (Receive).
  3. Complete the process modeling.

Step 3 – Configure parameters

Integration between different pools of the same process:

  1. You simply drag the flow of the end message to the start message event of the other pool, HEFLO already takes care of all necessary configuration (Observe that the flow will get dashed line).

Integration between different processes:

  1. Select the end message event and access the properties tab on the right side.
  2. In the properties, on the “Execution” group, select the “Process Message” option in the “Connector” field.
  3. Click the chain icon shown in the figure below.
  4. In the window that will open, select the process with the message start, then choose the version (For the version you can select the “Last version” option, thus, HEFLO will always integrate with the last published version of the process), and finally, click “Confirm.”.

 

Step 4 – Passing parameters through integration

You can transfer parameters values between Work Items through integration.

  1. Select the end message event and access the properties tab on the right side.
  2. In the “Execution” group, click the “Parameters” button.
  3. In the window that will open, “Configure sending parameters”, select the parameters that will be transferred, both sending and response.
    1. For the “Sending Parameters” you have two options: Transfer values from the fields of a Work Item to another, or pre-defined values, that may contain some dynamic content, just click on the icon to change the configuration, see example below.To add dynamic content click “Click here to add dynamic content” and choose the desired attribute.
      Important: The subject field is special because it is the title of your work item.
    2. To configure “Response Params”, you define which fields in your main work item will receive the parameters values of the other process or pool. 
      Important: “Number of the Main Token” can be used to synchronize the processes that execute between different pools.

 

Was this article helpful?

Related Articles