Process Instance Diagram

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!

This is a forum for questions related to the 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.

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 or

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: