Interaction between BPMN and Angular Code


#1

Hi,
We’re trying to integrate BPMN and Angular Code.
We have a scenario to disable a button in Angular if no task is added in BPMN diagram. What will you suggest is the best way to have an interaction between custom modeler code and Angular controller.
One way we can think of is:
–> Triggering a custom event when shape is created or removed from modeler code and capturing it in Angular using directive.

Please contribute if there is a better and optimized way.


#2

I’d go exactly for what you suggest: Listen on shape.added and shape.removed and keep track of whether the shape is on the canvas.


#3

Hey, Thanks for the response. :slight_smile:

We’ll go this way only then.

Regards.