I'm using mxgraph for bpmn workflow in my web application. So I need state some rules for nodes. For example:
- Start node has no input.
- Start node has just one output to others except notification node.
- Start node has 0 ore more out put to notification node.
I can't specify this state with multiplicity. How should I do it?
Put domain info into cells' values. Override
mxGraph#validateEdge, implement your rules there based on source and target cells' values (alternatively overridemxGraph#isValidConnectionif you don't care about providing a error message).