Process Instance Diagram


#1

Hello everybody!
How I get Process Instance Diagram in PNG file from Java API. I want save image of every step(on each task).

I get
ActivityInstance ai = runtimeService.getActivityInstance(pi.getId());
But I don’t know how it vizualize… It is very important for me!
Help me!


#2

This is a forum for questions related to the bpmn.io project. I’m afraid we can’t help you with questions regarding Activity. Please make sure you’re asking in the right place before asking a question that seems to be very important to you.


#3

I understand where I ask the question. I use not Activity, but Camunda. On their forum(and other forums) on these issues are often sent to this forum! Thank you for such a “polite” answer!

P.s. for example https://forum.camunda.org/t/how-to-get-the-process-definition-diagram-and-process-instance-diagram-via-java-api/919/3 or https://stackoverflow.com/questions/31166178/retrieving-a-process-instance-diagram-in-camunda


#4

You gave no context except for some code that looks like it’s related to Activiti. As you can see, this can lead to confusion.

About your question: You can convert BPMN 2.0 diagrams to PNG images using this library: https://github.com/bpmn-io/bpmn-to-image