processpiper icon indicating copy to clipboard operation
processpiper copied to clipboard

Exporting diagram to XML

Open nraffa-five1 opened this issue 1 year ago • 20 comments
trafficstars

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!

nraffa-five1 avatar Apr 11 '24 06:04 nraffa-five1

Hi, do you mean BPEL?

csgoh avatar Apr 11 '24 09:04 csgoh

yes!

nraffa-five1 avatar Apr 12 '24 07:04 nraffa-five1

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

vetertann avatar May 29 '24 12:05 vetertann

@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?

csgoh avatar Jun 02 '24 06:06 csgoh

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!

nraffa-five1 avatar Jun 02 '24 11:06 nraffa-five1

@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.

vetertann avatar Jun 02 '24 21:06 vetertann

@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. 😄

csgoh avatar Jun 03 '24 00:06 csgoh

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.

nraffa-five1 avatar Jun 03 '24 06:06 nraffa-five1

Same here, and that would be awesome!

vetertann avatar Jun 03 '24 08:06 vetertann

Still working on it. Stay tuned. ☕

csgoh avatar Jun 19 '24 08:06 csgoh

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

nraffa-five1 avatar Jun 19 '24 09:06 nraffa-five1

@nraffa-five1 @vetertann ProcessPiper v0.8.0 now supports the export to .bpmn function. Give it a try. See this page for more information

csgoh avatar Jul 28 '24 05:07 csgoh

Oh woooowww, you are amazing @csgoh !!! Thank you so much! I will give it a try, but seeing it on the first glimpse, it works amazing!

nraffa-five1 avatar Jul 28 '24 15:07 nraffa-five1

@csgoh Run first tests, works like a charm, with PERFECT layouting. Incredible, even Camunda's Fluent Builder fails to do this, not talking about lanes and colors... This is amazing, really, thank you!

vetertann avatar Jul 28 '24 20:07 vetertann

hi @csgoh ! once again, i thank you for your incredible work. It works like a charm when i import the code into https://demo.bpmn.io/

the thing is that when i import it into flowable it just recognizes the lane, afterwards all the elements and connections are not shown sadly. Can you think of what it could be the reason for it? Do you know if flowable uses another syntax? Thank you so much!

nraffa-five1 avatar Sep 03 '24 09:09 nraffa-five1

Hi @nraffa-five1, I have tested the exported .bpmn file with bpmn.io and Sparx EA, but I have not tested it with flowable. Something I can try if I can find some free time 😀. I suspect that flowable is more stringent in terms of importing external .bpmn file. Can you create a simple diagram [Start->Task1->Stop] in processpiper and in flowable and compare both the exported files?

csgoh avatar Sep 03 '24 20:09 csgoh

Hi @csgoh ! Yes of course, I will do that. Thank you very much. I will let you know what I find :)

nraffa-five1 avatar Sep 10 '24 15:09 nraffa-five1

Hii, I played around a bit with the import/export. I (kinda) imported a bpmn model successfully into Flowable when it had one pool and at least two lanes. The lanes showed up pretty messy. I guess for executable models, lanes and pools are not needed anyways. Is there a possibility to generate process piper bpmns without any Pools/Lanes @csgoh? Let me know, if I can help here 😊

martisaw avatar Sep 10 '24 19:09 martisaw

@martisaw Thanks for your feedback. At this point of time, I have no plan to make the business process model executable. ProcessPiper is about visualising the business process, it was never intended to be used for execution.

csgoh avatar Sep 22 '24 21:09 csgoh

@nraffa-five1 Can you try exporting a bpmn model to Flowable with the latest version v0.8.1?

csgoh avatar Nov 02 '24 23:11 csgoh