In a role action (or any other way), is there a way to dynamically route a task to a group (based on a uda value)? Have to demo this on Monday, so need input as quickly as possible J thanks.
I know that you can send it to a user, but not sure about groups…
When I try a role action with a group name being set in an action to “Assign Task To User” (yes, I know it is for users not groups), it shows the task active, and assigned to the group (“group2” in screenshot below) that I wanted to assign it to, but the workitems are not expanded to the users in that group. It seems that the workitem itself is assigned to a group.
Author: Ivar Alexander
Attachment:
The idea is that whatever the role will be, the role will be stored in a UDA instead of the normal role name attribute of a node. Leave the role blank in the design view of the node.
A sample JavaScript would look like this:
Var groupName = uda.groupName;
var assignees = getGroupMembers(groupName); /* the result should be a comma separated string.*/
setActivityAssignees(assignees);
Author: C.Y. Chen
Attachment:
n Get Role Members
n Returns a comma separated list of the users in the given role.
n Use the Comma Separated List Actions to parse results.
n Usable in the Role Action: Assign Task to User
n Can be used to assign a task to specific users within a division.
For example:
• Editors: BusinessEditor, SportsEditor
• Sports: SportsJournalist, SportsEditor
• Assign Activity Node to Editors
• In Role Action of Activity Node Get Members of “Sports” into a String UDA
• In Role Action of Activity Node Assign Task to that String UDA
• Assignment will be made to the intersection of the Action and the Role:
SportsEditor
Author: Ivar Alexander
Attachment:
The other thing that I could do is to also keep the activity role blank to allow the activity to be assigned to any group. If the activity role is not blank, then it can only be assigned to members of that group (ie narrowing down within that group).
Author: Ivar Alexander
Attachment: