Message Boundary Event

Hello, I have a question about using message boundary events. In this icon, I will start from
A user task named Leaveform. In principle, I use JavaScript to create a button named cancel in the font project.
After clicking Cancel, extract the process from the leaveform to the Cancel line. I try to use the Postman rest API
ProcessInstanceId cancels processInstanceID and completes the process.



newdiagram.bpmn (6.4 KB)

Hello @No04_No04 ,

the process instance id is no variable, so it won’t serve as correlationKey.

Please create a message correlation like this:

{
  "messageName": "Cancel",
  "processInstanceId": "12345"
}

This will find your process instance.

Beside this, we recommend to use a business key over a process instance id as this is correlation with your data and not engine-generated data.

I hope this helps

Jonathan

2 Likes

I thank Jonathan that guide me for newbie like me :smile:

1 Like