Cockpit diagram listener

Hello,

Is it possible to listen for events on the runtime model diagram in Camunda’s cockpit?
What I would like to do is listen to changes when I user drags a token to another point on the diagram and applies that change.

Stephen

Hi @stephenm,

in the background the engine uses process instance modification to move the token around: https://docs.camunda.org/manual/latest/user-guide/process-engine/process-instance-modification/.

There is no listener available for this.

As the feature is build to be used in exceptional cases only (please have a look at the first paragragh of the linked documentation) you should consider a change in the process, if you request listeners to do something else in the moment of process instance modification.

But the process change is recorded in the user operation log database table: https://docs.camunda.org/manual/latest/user-guide/process-engine/history/#user-operation-log.

What is the use case for your listener?

Hope this helps, Ingo

Hello Ingo,

The use case for this stems from the fact we have two databases. One stores all things Camunda and the other is where we store our domain data. We need to keep both in sync.

So if we roll this into production, I would like our support teams to be able to go into production and if required, move around tokens on the cockpit diagram view. The issue is that when these changes are made, we need to update tables in the domain database, so I need to know what was done on the diagram (where was token moved to, what is the new task id etc).

This seems to be a good feature for production support, so I suspected it was already available.

Warm Regards,
Stephen Munro