Generating BPMN file programmatically doesn't include bpmndi element

412 views
Skip to first unread message

abh...@gmail.com

unread,
Aug 4, 2015, 1:03:57 AM8/4/15
to camunda BPM platform contributors
Hi All,

Is there a way to have the bpmndi element while generating the bpmn using the fluent builder APIs?

I've found that the activiti engine provides auto layout option to generate bpmndi element, do we have anything similar to that in camunda?

Couldn't find any document related to same either.

Thanks,
Abbhishek.

Sebastian Menski

unread,
Aug 4, 2015, 2:18:20 AM8/4/15
to camunda...@googlegroups.com
Hi Abbhishek,

currently this is not possible with the Camunda BPMN model API. See
https://app.camunda.com/jira/browse/CAM-1723

Cheers,
Sebastian


abh...@gmail.com

unread,
Aug 5, 2015, 2:04:40 AM8/5/15
to camunda BPM platform contributors

Thanks Sebastian for the info. Would need some suggestion to have a workaround of this. Could you share your thoughts on this.

All I require for time being is to generate bpmn programmatically and have the di element also. Possible ways to select:

1. Create bpmn file using activiti model and then use the bpmn and execute in Camunda engine. Not sure how the engine will react?
2. Dirty fix by merging the di element generated in activiti model to the bpmn generated by Camunda model APIs.

Please suggest a better solution if any.

Thanks again!

Daniel Meyer

unread,
Aug 5, 2015, 2:39:35 AM8/5/15
to camunda...@googlegroups.com
Hi Abbhishek,

Do you "just" need DI to be present or do you also need it to be more or
less well layouted?

Why / where is the DI required? For opening the Diagram in the
webapplication or in a Modeler? (I asking to beacuse I try to challenge
the requirment but because I am interested in the usecase)

Daniel

abh...@gmail.com

unread,
Aug 5, 2015, 2:45:10 AM8/5/15
to camunda BPM platform contributors

Hi Daniel,

To be more or less well layouted. The use case is simple,

1. Have the visualization of the process in Camunda GUI(web app).

Able to modify in modeller is secondary and not in scope of the use case :)

--Abbhishek.

Daniel Meyer

unread,
Aug 5, 2015, 2:51:20 AM8/5/15
to camunda...@googlegroups.com
It is not an option to only generate the DI Elements but do no
"layouting" and have a user arrange them manually in the modeler.

That probably means the layouting needs to be somewhat OK.

Daniel

abh...@gmail.com

unread,
Aug 5, 2015, 3:00:08 AM8/5/15
to camunda BPM platform contributors

Sorry but i couldn't understand the first part. The requirement is to have the model created and designed dynamically using configurations provided externally.

So yes, the layout needs to be taken care at the same time. And can't be modeled later.

As of today, we don't have a provision to generate DI element and have a layout either?

Please correct me if my understanding is wrong. And suggest possible way forward

Thanks for the help!

Falko Menge

unread,
Aug 5, 2015, 4:08:17 AM8/5/15
to camunda...@googlegroups.com
If your models are not too complex, standard graph layouting libraries
might do the job.

Some examples:
Graphviz (http://www.graphviz.org/)
JUNG (http://jung.sourceforge.net/)
JGraph (https://github.com/jgraph/jgraphx)
yFiles (http://www.yworks.com/en/products_yfiles_about.html)

With not complex I mean models that fit to the model of a standard graph
with only nodes and edges, e.g. it shouldn't contain Boundary Events as
they are nodes attached to nodes.
Reply all
Reply to author
Forward
0 new messages