0

Automatic connections with Line Splicing

 2 years ago
source link: https://blog.kie.org/2021/09/automatic-connections-with-line-splicing.html?utm_campaign=Feed%3A+droolsatom+%28Drools+-+Atom%29
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Automatic connections with Line Splicing

Line splicing is a feature available in BPMN and DMN editors that allows dropping a node on top of a connector in order to automatically split it into two connectors and perform the right connection assignments. This way, the authoring process gets smoother and more intuitive once the user doesn’t need to do the connections manually in order to insert nodes between other connected nodes anymore.

When a node is being dragged over a connector, the connector highlight provides feedback if line splicing can be performed. It is only possible to perform this operation between two connected nodes and if the connection between the three nodes is allowed.

If the operation is allowed, the connector is highlighted in blue, and then if the node is dropped, the node connection is promptly executed. 

Otherwise, the connector is highlighted in red, indicating that line splicing cannot be performed, and if the node is dropped at this moment, the node connection is not performed.

Connectors with bend-points can be spliced as well. All bend-points are preserved when the line splicing is performed.

Line splicing can be performed into containers such as Lanes and Sub-processes as well. Thus, if the connection and the containment is allowed the line splicing and also the containment are executed. 

This feature is fully integrated with the editors therefore authoring operations such as “Undo” and “Redo” are available as well.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK