I am trying to replicate the bpmn diagram that we see in a process instance in cockpit(camunda 7). I am using the bpmn.io library for the same and have successfully rendered the bpmn diagram in my ui using the xml api. I am stuck at showing the completed and ongoing tasks in that particular bpmn.
Hey @Anjana, welcome to the forum and thank you for your question.
I haven’t used bpmn.io but I believe your application would have to call the Camunda REST APIs to retrieve the relevant runtime and historical data related to the particular process definition/version you are visualising. Then, use the capabilities of bpmn.io to overlay this data onto the process image as per your requirements.
I hope that helps!