# How can i get ProcessInstance Highlights

**URL:** <https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555>\
**Category:** Flowable Engine\
**Created:** [January 31, 2018, 5:19am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555 "2018-01-31T05:19:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![wentao](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@wentao](https://forum.flowable.org/u/wentao)\
**Post date:** [January 31, 2018, 5:19am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/1 "2018-01-31T05:19:44Z")

</div>

i saw ProcessDiagramGenerator have many api to draw a progress diagram,but none of them have been used with the arg highLightedFlows.  
could any one tell me how i can get ProcessInstance Highlights?  
thanks too much!

---

<div class="post-metadata">

**Author:** ![wentao](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@wentao](https://forum.flowable.org/u/wentao)\
**Post date:** [January 31, 2018, 9:54am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/2 "2018-01-31T09:54:03Z")

</div>

Anybody can help me? SOS

---

<div class="post-metadata">

**Author:** ![dmitryfar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/dmitryfar/32/477_2.png) [@dmitryfar](https://forum.flowable.org/u/dmitryfar)\
**Post date:** [January 31, 2018, 11:37am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/3 "2018-01-31T11:37:13Z")

</div>

Hi, wentao.  
You can look how to gather completed flows at RuntimeDisplayJsonClientResource#gatherCompletedFlows to pass them into ProcessDiagramGenerator.

---

<div class="post-metadata">

**Author:** ![dmitryfar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/dmitryfar/32/477_2.png) [@dmitryfar](https://forum.flowable.org/u/dmitryfar)\
**Post date:** [January 31, 2018, 5:13pm UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/4 "2018-01-31T17:13:06Z")

</div>

NOTES:  
_gatherCompletedFlows_ method **does not** gather flows for SubProcesses because of _pojoModel.getMainProcess().getFlowElements()_ has no flow elements for any embedded sub processes.

---

<div class="post-metadata">

**Author:** ![wentao](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@wentao](https://forum.flowable.org/u/wentao)\
**Post date:** [February 1, 2018, 2:27am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/6 "2018-02-01T02:27:42Z")

</div>

thanks for you help.but i can’t find RuntimeDisplayJsonClientResource class,could you tell me which jar it’s in.or what’s RuntimeDisplayJsonClientResource’s qualified name.

---

<div class="post-metadata">

**Author:** ![dmitryfar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/dmitryfar/32/477_2.png) [@dmitryfar](https://forum.flowable.org/u/dmitryfar)\
**Post date:** [February 1, 2018, 7:18am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/7 "2018-02-01T07:18:01Z")

</div>

It is _flowable-ui-task-rest_:  
[https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-task/flowable-ui-task-rest/src/main/java/org/flowable/app/rest/runtime/RuntimeDisplayJsonClientResource.java](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-task/flowable-ui-task-rest/src/main/java/org/flowable/app/rest/runtime/RuntimeDisplayJsonClientResource.java)

---

<div class="post-metadata">

**Author:** ![wentao](https://avatars.discourse-cdn.com/v4/letter/w/a9adbd/32.png) [@wentao](https://forum.flowable.org/u/wentao)\
**Post date:** [February 1, 2018, 9:10am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/9 "2018-02-01T09:10:15Z")

</div>

i see.thanks in advance for your help @dmitryfar

---

<div class="post-metadata">

**Author:** ![dmitryfar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/dmitryfar/32/477_2.png) [@dmitryfar](https://forum.flowable.org/u/dmitryfar)\
**Post date:** [February 2, 2018, 9:53am UTC](https://forum.flowable.org/t/how-can-i-get-processinstance-highlights/1555/10 "2018-02-02T09:53:09Z")

</div>

This is custom helper to allow anyone gather historic flow information:

> <https://gist.github.com/dmitryfar/f81bba67f8d954de0cde6e1482d73c57>
