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
8 replies
Subscribers
6 subscribers
Views
4158 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Using User Input Task Activity Node with an expression based task assignment to
abhinavg
over 9 years ago
Using User Input Task Activity Node with an expression based task assignment to assign task to groups
Issue: Set re-assignment privileges for assignees in task node changing to default rights (Can reassign the task to anyone) even on using other rights,while using expression based assignment
Task Assignment Expression Used : if(testCondtion, getgroupbyname("ABC_Location_475"), getgroupbyname("ABC_Location_145") )
ABC_Location_# groups already exist in Appian
Is it not possible to have expression based assignment with changed re-assignment privileges ? or group functions is causing some issues ?
Thanks,
Abhinav
OriginalPostID-161633
OriginalPostID-161633
Discussion posts and replies are publicly visible
Parents
0
Chris
over 9 years ago
The reassignment setting should have no effect. You are most likely running into an issue with the process initiator not having permissions to see the groups you are trying to retrieve, thus the function getgroupbyname() returns no data. What I've done for this same situation is to create 2 group-type variables inside the process model, or one for each potential group assignment, then use the pv!groupValue1 variables for the assignment expression.
In the model, I use a script task run under the designer account to default pv!groupValue1 to getgroupbyname("ABC_Location_475"), then pv!groupValue2 to getgroupbyname("ABC_Location_145"), then you can set your assignment expression to:
if(testCondtion, pv!groupValue1, pv!groupValue2)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Chris
over 9 years ago
The reassignment setting should have no effect. You are most likely running into an issue with the process initiator not having permissions to see the groups you are trying to retrieve, thus the function getgroupbyname() returns no data. What I've done for this same situation is to create 2 group-type variables inside the process model, or one for each potential group assignment, then use the pv!groupValue1 variables for the assignment expression.
In the model, I use a script task run under the designer account to default pv!groupValue1 to getgroupbyname("ABC_Location_475"), then pv!groupValue2 to getgroupbyname("ABC_Location_145"), then you can set your assignment expression to:
if(testCondtion, pv!groupValue1, pv!groupValue2)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data