Start process by sending "PublishMessageCommand"

I have a question regarding starting a process by sending a message event. I use the following command to start the process:

Blockquote
arhsZeebeClient
.newPublishMessageCommand()
.messageName(“Message_StartEvent”)
.correlationKey(correlationKey)
.timeToLive(Duration.ofSeconds(10))
.variables(variables)
.send()
.join();

How can I ensure that the process was really started? I always receive only a PublishMessageResponse with a key independent if I use the correct message name or not.

Hi @gizmo1177, you can use the ‘create process’ command to ensure that the instance is created. Publishing messages is always asynchronous. This might be more related to Zeebe than to the connector.

1 Like