====== Extend your mapping model by constraints defined through OCL ====== In GMF it's possible to use OCL to define constraints for nodes and connections. This benefit we can use to enforce the bipartition of petrinet graphs. Therefor a link constraint has to be created as a child node below the link mapping node. This link constraint itself can be extended by source or target constraints. We choose a target constraint to say, that the node should not point to itself. The picture below shows this change. After this steps are done, do not forget to regenerate the diagram. Start the application and try to point a node to itself, this will not work as expected! Every change I do to the Pipenet-Project will be branched or tagged through GIT and published to GitHub. {{:en:programming:java:eclipse:gmf:oclexample.png?600|}}~~DISCUSSION~~