csgoh / processpiper

An open source python library to generate business process diagram using code or plain text.
https://github.com/csgoh/processpiper
MIT License
148 stars 10 forks source link

Difficulties in drawing generation. #45

Closed sreekaribh closed 2 weeks ago

sreekaribh commented 3 months ago

Hello CsGoh, The Processpiper library is working only for 4 connections irrespective of the incoming and outgoing paths. In my case, I have 5 connections for the single task [B] for which it is failing to draw. Regarding this issue I made few changes in the shape.py file [shortest_source_coord.connected = False] which is drawing fine but the two tasks [E, F] are overlapping after these changes. So, kindly guide me with solution. Please refer the diagram. Screenshot 2024-04-01 164658

Thanks

csgoh commented 3 months ago

Hi @sreekaribh, the limit of 4 connection per element is by design. According to BPMN best practice, an element should be connected either left, right, top, or bottom. If you have more than 4 connections (incoming and outgoing), it is better to add another gateway element to fan out.

You can see the previously closed issue here: https://github.com/csgoh/processpiper/issues/17

Hope this helps.

csgoh commented 2 weeks ago

Closing the issue as there is no further response.