[resolved]insert variable into actor filter

1
0
-1

Hello , I would like to include in the actor filter a process variable . I would try to search user by username inserting it as a variable type :
apiAccessor.getIdentityAPI().getUserByUserName("'"+name+"'");

It's possible?
Thanks in advance
Monica

1 answer

1
0
-1

When you create your Actor Filter (New Definition) the second step asks you for your Inputs. You have to define name as an input to the filter.

You should also create your wizard page to allow the filter to ask you for the mapping of the process variable to the Actor Filter Input.

When you create the Application Filter code (New Implementation) the module will contain a get for the variable which you can then use as you have coded (sort of).

apiAccessor.getIdentityAPI().getUserByUserName("'"+AF.getName()+"'");

When you add the Actor Filter to the process you MAP the process variable to the Actor Filter Inputs.

regards
Seán

PS: If this reply answers your question, please mark as resolved.

Comments

Submitted by monicamegaro on Thu, 07/21/2016 - 10:15

Hi Sean, thanks for your answer, it help me!! I
Regards
Monica

Notifications