Couple a BPMN process with a CMMN process when both are in two different repositories

Hi!

From a modeler as well as Java perspective, is it possible to couple a BPMN process with a CMMN process? If so, does anyone have a Java example as well as a modeler example?

Hi @simonrisberg,

it’s possible with the Call Activity: https://docs.camunda.org/manual/7.11/reference/bpmn20/subprocesses/call-activity/#create-a-case-instance.

An example is included in the invoice demo application with the Camunda BPM-Platform on Tomcat or Wildfly. You can find the example-code here: https://github.com/camunda/camunda-bpm-platform/tree/master/examples/invoice.

Hope this helps, Ingo

Hi!

I looked at the example but I don’t see where you put the CMMN diagram and the BPMN diagram. Where are these located?

Hi @simonrisberg,

you can find them here: https://github.com/camunda/camunda-bpm-platform/tree/master/examples/invoice/src/main/resources

It’s a common maven project, so the files are stored in the folder for procet resources: https://maven.apache.org/guides/getting-started/index.html#How_do_I_add_resources_to_my_JAR.

Hope this helps, Ingo