Correlate message REST call not working

Hello,

I’m having a problem trying to correlate a message via REST call, I get status 500 response with the following content:

{
“type”: “NullValueException”,
“message”: “businessKey is null”
}

I tried a simple example on my local machine using the same diagram elements and it worked flawlessly (basic Camunda installation, no additional config). The documentation doesn’t say that businessKey is mandatory. I’ve uploaded both postman REST call and diagram, any ideas?

Also, is there a better way to implement a waiting mechanism if a service task is running a batch file that takes a long time (hours) to complete? I tried conditional catch events, but I get an “Unsupported intermediate catch event type” error.

Looks to me that the message is correctly correlated but maybe something else after the message event is throwing the error.
If you want more details on how to deal with communication take a look at this tutorial.

If you want to run long-running service tasks they should be implemented using the External Task pattern.

Thank you for your quick reply, I’ll look into External Tasks.