You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Writing test case for my workflow, mocking same call activity once with message boundary event and once without message boundary event.
I have single main workflow which calls one same sub process in call activity 2 times with different scenario, once I need the call activity to wait till I receive the massage from boundary event and once no need to wait. I’m attaching my BPMN and test case for the reference. If I use:
then it throws error for message correlation: Error while evaluating expression: ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“READ_MESSAGE2”).processInstanceId(execution.getProcessInstanceId()).correlate()}. Cause: org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘READ_MESSAGE2’: No process definition or execution matches the parameters
Writing test case for my workflow, mocking same call activity once with message boundary event and once without message boundary event.
I have single main workflow which calls one same sub process in call activity 2 times with different scenario, once I need the call activity to wait till I receive the massage from boundary event and once no need to wait. I’m attaching my BPMN and test case for the reference. If I use:
ProcessExpressions.registerCallActivityMock(“CALL_SUB_PROCESS”)
.deploy(processEngineRule);
then it throws error for message correlation: Error while evaluating expression: ${execution.getProcessEngineServices().getRuntimeService().createMessageCorrelation(“READ_MESSAGE2”).processInstanceId(execution.getProcessInstanceId()).correlate()}. Cause: org.camunda.bpm.engine.MismatchingMessageCorrelationException: Cannot correlate message ‘READ_MESSAGE2’: No process definition or execution matches the parameters
If I use:
ProcessExpressions.registerCallActivityMock(“CALL_SUB_PROCESS”)
.onExecutionWaitForMessage(“READ_MESSAGE2”)
.deploy(processEngineRule);
it is throwing null pointer exception. Please help to resolve the issue
resources.zip
The text was updated successfully, but these errors were encountered: