Camunda Team Blog

Monitor collaborating executable BPMN 2.0 processes in cockpit

Written by Bernd Rücker on , under Execution category.
In a current customer project we faced the issue that there were two executable processes - independent of each other. So far - so normal. But these two processes had to sync status here and there - so they were clearly related, but not by using a Call Activity. BPMN 2.0 allows this by communication via messages as shown in the following example. But how to keep track of this in monitoring? We developed a small cockpit plugin to show the related process instances - see below.

The process is in the area of IT infrastructure management, where changes are handled by multiple different change processes handled by different departments which are pretty autonomous. But actually for todays post it is not really important what the process does. I can just add that I am pretty happy that camunda is small enough to have much easier processes in place for IT infrastructure management ("Hey Stefan - get the wireless working please" ;-)).

I added a new example process application showing the above process in action - including the Java code I wrote in order so send all the messages:

I used process variables ("callingProcess" and "calledProcess") to remember which processes communicate with each other. I used this variables in a pretty straight forward cockpit plugin showing the related processes  for a selected process instance (comparable to what we do out-of-the-box for call activities):

This makes it pretty easy to keep everything under control in operations. And the best: It took only a couple of minutes to write the plugin :-)

Check it out yourself:

Feedback always welcome - use our forum.