Mock Call Activities in ZeebeProcessTest

Hey :slight_smile:

we are currently migrating a process with a few subprocesses (call activities) and like verify the correct process executions.

Is it possible (like in Camunda 7) to mock the completion (or incident failure) of call activities instead of resolving them and completing each nested Service Task manually?

Kind regards,
Florian

Hello @floricdev ,

depending on the test setup, you could provide a mock process that is called instead of the original one.

I hope this helps

Jonathan

Hey :slight_smile:
thanks for your reply. Unfortunately, I don’t understand how I could provide a mock in a Camunda 8 based ProcessTest setup. Do you have any example code how to achieve this?

Kind regards, Florian

Hello @floricdev ,

you can create a process with the same id (programmatically or as BPMN XML file) and deploy it at start of the test.

I currently have no example, sorry… :confused:

Jonathan

Hey :slight_smile:

no problem, this already helped us to understand the idea. Thanks :slight_smile: We will give it a try.

1 Like

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