# Is "Create an actor filter page" sample code is correct?

**URL:** <https://community.ofelia.com/t/is-create-an-actor-filter-page-sample-code-is-correct/9907>\
**Category:** Q&A\
**Created:** [14 December 2019 03:39 UTC](https://community.ofelia.com/t/is-create-an-actor-filter-page-sample-code-is-correct/9907 "2019-12-14T03:39:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabolgha\_1415225](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@sabolgha\_1415225](https://community.ofelia.com/u/sabolgha_1415225)\
**Post date:** [14 December 2019 03:39 UTC](https://community.ofelia.com/t/is-create-an-actor-filter-page-sample-code-is-correct/9907/1 "2019-12-14T03:39:22Z")

</div>

I was following the "Create an actor filter" documentation and there is a sample code implementation, When I look&nbsp;at the javadoc,&nbsp;I cannot find the &nbsp;getParentProcessInstanceId() from EngineExecutionContext. Is this renamed to getRootProcessInstanceId()?&nbsp;

Thank you

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [31 December 2019 19:32 UTC](https://community.ofelia.com/t/is-create-an-actor-filter-page-sample-code-is-correct/9907/2 "2019-12-31T19:32:49Z")

</div>

Hello,

Let's imagine you have a process "Europe"

in this process, you have a call activity to the process "France"

And then, in the process France, a call activity to the process "Grenoble".&nbsp;

In a task in the process Grenoble:

\* the getProcessInstanceId() return the processID in the process Grenoble

\* the ParentProcessInstanceId() is the processinstanceID in the process France

\* the RootProcessInstanceId() is the&nbsp;processinstanceID in the process Europe (this is the case ID the user see)

You can use LongBoard ([http://community.ofelia.com/project/custom-page-longboard](http://community.ofelia.com/project/custom-page-longboard)) to understand and see the different processnstanceid

If you need to access the ParentProcessid, then you have to use the ProcessAPI&nbsp;(hum, saying that, I don't see the way to access the Parent in ProcessAPI - search or a containerId)

Hope this help,

&nbsp;
