Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
9 subscribers
Views
1747 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Within a servlet, given a task ID, I want to be able to tell if that task is ass
nickw
over 9 years ago
Within a servlet, given a task ID, I want to be able to tell if that task is assigned to a Custom User group. I'm able to get the the list of assignee's with the code below, but how do I use that list to be able to tell if the assignee is a custom user group?
TaskDetails details = pes.getTaskDetails(ID);
Assignment.Assignees[] assignees = details.getAssignees();
Any help would be appreciated. Thanks!
OriginalPostID-175464
OriginalPostID-175464
Discussion posts and replies are publicly visible
0
Sumeet Khare
over 9 years ago
check ObjectTypeMapping.TYPE_USER == assignees[1].getType() --- if it is a user then this will be true else its a group.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
dylanf
over 9 years ago
Thanks, Summet. The use case here is we want to know not that it's just a group, but the group itself is of the Custom group type and not another group type.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sumeet Khare
over 9 years ago
In that case, you can check for the group type of that group using "GroupType" class.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
nickw
over 9 years ago
Hey Sumeet, thanks for the info so far, but how would I check for the group type using the GroupType class? I checked out the API and it isn't totally apparent how I'd use the assignee list to check for the custom group type.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel