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

Exporting diagram to XML #46

Open nraffa-five1 opened 2 months ago

nraffa-five1 commented 2 months ago

Hi! Awesome library! Thank you for the contribution. I wanted to know if you were thinking of adding an XML export / import to the library. Thank you!

csgoh commented 2 months ago

Hi, do you mean BPEL?

nraffa-five1 commented 2 months ago

yes!

vetertann commented 1 month ago

Same question, but BPMN 2.0 ! Would be awesome addition.

csgoh commented 1 month ago

@nraffa-five1 @vetertann Thanks for providing feedback. I try to understand your use cases better. Why do you need to export the diagram to BPEL? Do you mind to share your use cases?

nraffa-five1 commented 1 month ago

Hi @csgoh, thank you for replying! My use case is that I need to export the BPMN 2.0 Diagram so that my user can edit it if he doesn't like it. This is because at first the diagram gets automatically generated but I would like to offer the possibility of export. A PNG picture file wouldn't help much as they can't edit that, that is why I need the generation of XML code for the BPMN 2.0 Diagram. Thank you!

vetertann commented 4 weeks ago

@csgoh same as above, first I pass a simple DAG and create BPMN model, then I need user to further work with the model, add gates and/or rename something ,some details that were not in the initial design. Your library nails layout with lanes, which is great.

csgoh commented 4 weeks ago

@nraffa-five1 @vetertann It sounds like you guys want to export to the BPMN XML specification, not BPEL. They have completely different file formats and serve different purposes. Let me find some time to add the functionality. 😄

nraffa-five1 commented 4 weeks ago

That would be awesome! Let me know if I can support you in any way! I would love to understand how does that mapping happen under the hood.

vetertann commented 4 weeks ago

Same here, and that would be awesome!

csgoh commented 1 week ago

Still working on it. Stay tuned. ☕

nraffa-five1 commented 1 week ago

oh damnnnn!! ❤️ thank you so much, you rock!