Message Boundary event on parent task to invoke a child execution

Hello All,

I’ve a parent process that has a Message boundary Event on one of the User tasks with a purpose of initiating a child process instance when the message is propagated.

The message is propagated using the rest-api:

{
“messageName”:“createChild”,
“processInstanceId”:“5a4ac416-9e7a-11eb-8186-00090ffe0001”,
“processVariablesLocal”:{
“issueName”:{
“value”:“Payment Failed”,
“type”: “String”
}
}
}

My whole intention here is to set the process Variables only to the child instance but it is actually setting the variables on the parent instance. How to achieve this in camunda?

A snapshot of the workflow:

Hi @startrek
Welcome to the forum.

The reason that the payload of the message is no being stored in the parent process is because the message event itself if in still in the scope of the parent process.

To send a variable from the parent to the process being called by the call activity you need to use the variables tab to map the parent variable to the child one.

Thanks Neil !

Yeah, i’m aware of variable mapping in Call Activity.

What i’m trying to say is, for each parent process instance, there is a possibility of creating multiple child (Issue) process instances.

For each Message event that holds a specific child data in the request, it somehow doesn’t seem correct with the parent instance overriding its data for every latest child created.