Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Role.candidateList does not work.

Avatar

Former Community Member
I've been trying to evaluate a list of possible users to participate in a task through the following code:



var key = new Array();

var value = new Array();



key[0] = "DisplayName"; value[0] = "User1";

key[1] = "DisplayName"; value[1] = "User2";



Role.candidateList = Directory.findAllUsers(key,value);



This script is run on Role Builder, under the GetCandidateList event for the role GenericUser.



Although nothing seems to be wrong in the script above, the WorkItem stalls and the error message states that "You must assign the current work item to an user".



Has anyone seen this before?



Thanks.
1 Reply

Avatar

Former Community Member
Daniel-



If memory serves me correctly me thinks that's a bug which was resolved in one of the patches 129 / 134. See the Adobe Support download page for more info.



http://www.adobe.com/support/products/enterprise/support_knowledge_center_workflow.html



Cheers.