# \[beginner\] How to create actor filter

**URL:** <https://community.ofelia.com/t/beginner-how-to-create-actor-filter/4314>\
**Category:** Q&A\
**Created:** [27 March 2014 21:15 UTC](https://community.ofelia.com/t/beginner-how-to-create-actor-filter/4314 "2014-03-27T21:15:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stijn](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@stijn](https://community.ofelia.com/u/stijn)\
**Post date:** [27 March 2014 21:15 UTC](https://community.ofelia.com/t/beginner-how-to-create-actor-filter/4314/1 "2014-03-27T21:15:07Z")

</div>

Hello,

I have a question which should be relatively simple, but for two days now I can not figure out how to fix this. I have a username in a text variable (java.lang.String I think) called selecteduser. So this variable contains a username, for example walter.bates.

How do I create an actor filter, which sets the actor to the value of the variable? I ran the wizards more than 10 times with the documentation before me, but its jibberish, it does not make any sense. Eventually I end up with some java code, but no idea what to code or to do.

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/community_bonitasoft/original/2X/6/6b7b18c0478f2645369e82e009b65e3b97f2cc12.svg) [@system](https://community.ofelia.com/u/system)\
**Post date:** [28 March 2014 18:54 UTC](https://community.ofelia.com/t/beginner-how-to-create-actor-filter/4314/2 "2014-03-28T18:54:41Z")

</div>

Hi,  
  
 I think that what you is to use Actor Filtering but not create a new kind of it.  
 See&nbsp;http://documentation.bonitasoft.com/actor-filtering  
  
 Use "Single user" filter and take care to file the variable with the User ID (and not name).  
  
 Regards,

---

<div class="post-metadata">

**Author:** ![stijn](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@stijn](https://community.ofelia.com/u/stijn)\
**Post date:** [28 March 2014 20:24 UTC](https://community.ofelia.com/t/beginner-how-to-create-actor-filter/4314/3 "2014-03-28T20:24:14Z")

</div>

The thing is that I have the username stored already. I think its going to take more time to store the User ID, than to create a new actor filter.
