Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Role.candidateList does not work.

Avatar

Not applicable
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

Not applicable
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.