Hi all, new at this GoDiagram stuff so bare with me
I am developing a flow chart application, the charts are very simple, there are only 4 node types:
Start, End, Step and Decision.
I am trying to control the available ports for each node type based on the current connections. The start and end node are simple, they only allow one outgoing and one incoming respectively.
The step and decision nodes are proving more difficult.
- A step node can have 1 outgoing connection, and 3 incoming connections.
- The decision node can have 2 incoming connections, and two outgoing connections.
When either of these node types are added I want all of their ports to be available for any type (in/out) connections. Once the user starts to add connections between the nodes I want to validate their port settings and disable/enable ports to prevent the user from making any illegal connections between nodes.
Does anyone have experience doing this? And if so, which event should I be overriding to catch the link creation, and then how can I calculate which ports have connections, and which need to be disabled?
Any help with this is mucho appreciated!