No process definition or execution matches the parameters

Hi,
I have a main bpm process with 2 subprocesses.
I start the subprocess via correlation message with a groovy script:

execution.getProcessEngineServices().getRuntimeService() .createMessageCorrelation(“Message_To_CHILD”).processInstanceBusinessKey(businessKey)

where businessKey is the same of main process.

When I try to send a correlation message from subprocess to main process I get the following exception:
No process definition or execution matches the parameters.

I use the following script from subprocess

execution.getProcessEngineServices().getRuntimeService()
.createMessageCorrelation(“Message_TO_PARENT”).processInstanceBusinessKey(businessKey).
In the parent process the businessKey is equals to istance id.

I have camunda under spring boot application.

Can you help me?
Regards
Antonio

can you upload your models?

Can you give me your email?
I’ll share via cawemo with you.
Thanks
Antonio

I’ve send a message to you.

I would say the problem is that after the parent process has started the child process the token on the parent has not yet moved on to the message receive event before the child sends the message.

To solve this you need to add asynchronous before on the task which is sending the message back to the parent.

I have solved.
Thanks