# How can I get the highLightedFlowIds parameter?

**URL:** <https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988>\
**Category:** Flowable Engine\
**Created:** [September 21, 2017, 10:52am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988 "2017-09-21T10:52:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jiabaogithub](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jiabaogithub/32/320_2.png) [@jiabaogithub](https://forum.flowable.org/u/jiabaogithub)\
**Post date:** [September 21, 2017, 10:52am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/1 "2017-09-21T10:52:51Z")

</div>

Hi,  
How can I get the highLightedFlowIds parameter when I call the method as follows.

```java
new DefaultProcessDiagramGenerator().generateDiagram(bpmnModel, "png", highLightedActivityIds,
                highLightedFlowIds, processEngine.getProcessEngineConfiguration().getActivityFontName(),
                processEngine.getProcessEngineConfiguration().getLabelFontName(),
                "", null, 1.0);

```

I want to highlight all flows and activities that have been executed on the diagram.

---

<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:** [September 21, 2017, 11:02am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/2 "2017-09-21T11:02:35Z")

</div>

Hi,

use History service to get nodes/flow Ids from the BpmnModel.  
Similar functionality can be found here:

> **[martin-grofcik/activiti-crystalball](https://github.com/martin-grofcik/activiti-crystalball/wiki/Drawing-into-process-diagram)**
>
> testRunToEvent. Contribute to martin-grofcik/activiti-crystalball development by creating an account on GitHub.

  

> **[martin-grofcik/activiti-crystalball](https://github.com/martin-grofcik/activiti-crystalball/wiki/Audit-trail-diagram)**
>
> testRunToEvent. Contribute to martin-grofcik/activiti-crystalball development by creating an account on GitHub.

Crystalball is part of the flowable project too.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![jiabaogithub](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jiabaogithub/32/320_2.png) [@jiabaogithub](https://forum.flowable.org/u/jiabaogithub)\
**Post date:** [September 21, 2017, 11:23am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/3 "2017-09-21T11:23:51Z")

</div>

Hi,  
Sorry, I can’t find any information in that article about “how to get highLightedFlowIds?”.It only mentions highlightedActivities.  
I want to highlight all flow lines that have been executed on the diagram,but I don’t know how to get them.

---

<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:** [September 22, 2017, 6:33am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/4 "2017-09-22T06:33:22Z")

</div>

Highlighted flow ids are similar to node ids. Fetch them from the model.

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![jiabaogithub](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jiabaogithub/32/320_2.png) [@jiabaogithub](https://forum.flowable.org/u/jiabaogithub)\
**Post date:** [September 23, 2017, 3:23am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/5 "2017-09-23T03:23:13Z")

</div>

Hi,  
Can you provide some code examples?I know flow ids can be fetched from the model,but how can I fetch the flow ids that have been executed ?  
I don’t think the model will record the flow that has been executed,  
I guess flow ids that have bean executed could be fetched from historical records, but I didn’t find a way to do it.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [September 27, 2017, 8:30pm UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/6 "2017-09-27T20:30:09Z")

</div>

The flows are indeed not stored in history … you’d have to get the historic activities and then see in what order they’ve been visited to deduce the flows that have been taken to get these ids.

---

<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:** [September 28, 2017, 6:21am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/7 "2017-09-28T06:21:14Z")

</div>

The flows can be stored in the event log.  
Another possibility is that two nodes are connected with only one flow. It means when we have two following nodes from the history we can find flow between them in the model through source and target reference.

Martin

---

<div class="post-metadata">

**Author:** ![jiabaogithub](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jiabaogithub/32/320_2.png) [@jiabaogithub](https://forum.flowable.org/u/jiabaogithub)\
**Post date:** [September 29, 2017, 8:13am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/8 "2017-09-29T08:13:02Z")

</div>

I see,thanks for your reply.

---

<div class="post-metadata">

**Author:** ![jiabaogithub](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jiabaogithub/32/320_2.png) [@jiabaogithub](https://forum.flowable.org/u/jiabaogithub)\
**Post date:** [September 29, 2017, 8:14am UTC](https://forum.flowable.org/t/how-can-i-get-the-highlightedflowids-parameter/988/9 "2017-09-29T08:14:13Z")

</div>

I see,thanks for your reminding.
