# Generating BPMN process diagram with path it traversed

**URL:** <https://forum.flowable.org/t/generating-bpmn-process-diagram-with-path-it-traversed/8888>\
**Category:** Uncategorized\
**Created:** [January 18, 2022, 10:39am UTC](https://forum.flowable.org/t/generating-bpmn-process-diagram-with-path-it-traversed/8888 "2022-01-18T10:39:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![venkata.rajamanickam](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@venkata.rajamanickam](https://forum.flowable.org/u/venkata.rajamanickam)\
**Post date:** [January 18, 2022, 10:39am UTC](https://forum.flowable.org/t/generating-bpmn-process-diagram-with-path-it-traversed/8888/1 "2022-01-18T10:39:14Z")

</div>

I am having requirement to display the process instance diagram with the path it traversed like “Show process diagram” in admin app. By using this diagram, user can able to understand what are all the tasks has been done and how much pending still. Is there any possibility to do the same using Flowable API.

As of now i am using the below code, that shows only the current activity.

_ProcessDiagramGenerator diagramGenerator = processEngineConfiguration.getProcessDiagramGenerator();_  
_InputStream stream = diagramGenerator.generateDiagram(bpmnModel, “png”, activityIds, flowIds,processEngineConfiguration.getActivityFontName(), processEngineConfiguration.getLabelFontName(), processEngineConfiguration.getAnnotationFontName(), processEngineConfiguration.getClassLoader(), 1.0,processEngineConfiguration.isDrawSequenceFlowNameWithNoLabelDI());_  
Thanks in advance…

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [January 18, 2022, 9:47pm UTC](https://forum.flowable.org/t/generating-bpmn-process-diagram-with-path-it-traversed/8888/2 "2022-01-18T21:47:49Z")

</div>

> [@Completed process instance diagram](https://forum.flowable.org/t/completed-process-instance-diagram/684):
>
> Hi, Is there any reason why only the ACTIVE process instance have available a process instance diagram? After a process instance is completed or canceled the diagram is no longer available. IMHO it makes more sense to have the diagram for the completed process than for the active process (which could live for only a few seconds). For active instances there is this API: GET runtime/process-instances/{processInstanceId}/diagram However for completed processes there is nothing of the form…
