Constrains for BPMNNode

I need to add a constrain where the user is not able to add outgoing routes / connectors from a end event type node. Is there a way to do this by using constrains?

1 Reply

SG Shyam G Syncfusion Team June 25, 2018 07:36 AM UTC

Hi Luis, 
 
We have created a sample in which we have prevented the connector source Point from establishing a connection in BPMN End event using connectorSourceChange event. Please refer to the code example, help documentation and playground link. 
 
Code example: 
 
$("#diagram").ejDiagram({ 
  
                connectorSourceChange: connectorSourceChange, 
                  
            }); 
function connectorSourceChange(args) { 
            //when an node is BPMN end event, cancel the connection 
            if (args.node && args.node.event === "end") { 
                args.cancel = true; 
            } 
        } 
 
 
 
Regards, 
Shyam G 


Loader.
Up arrow icon