Camunda 8 with Message Start Event

Hi guys, a quick question.
We have started doing stuff with Camunda 8 now and wanted to use a message start event. We have modeled and implemented this and it looks like we can start a process instance, however the instance does not appear anywhere in Operate. (Dont get confused, the 404 and false are just random parameters we are handing over to the instance :slight_smile: )

You see anything that we might have missed?
MicrosoftTeams-image (2)

MicrosoftTeams-image

Is it possible that you started an instance of a different version? What do you see if you select All for version?

Best Regards,
dg

In my case process has started as expected,
but I have a problem to write Unit tests with message start event.

I following this instruction: Testing process definitions | Camunda Platform 8 Docs

But after I start the process with zeebeClient.newPublishMessageCommand() there is no way to get the ProcessInstanceEvent which is required if I want to assert things with io.camunda.zeebe.process.test.assertions.BpmnAssert.

Do you have any advice or example?

Hi @Jovan_Zoric,

the io.camunda.zeebe.process.test.inspections.InspectionUtility may help you further:

    long processInstanceKey = InspectionUtility
        .findProcessInstances()
        .withBpmnProcessId("myProcessId")
        .findFirstProcessInstance()
        .get()
        .getProcessInstanceKey();

With IDE support, you can get easily other search options.

Hope this helps, Ingo

2 Likes

Thanks Ingo, the InspectionUtility solves my issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.