Using User Input Task Activity Node with an expression based task assignment to

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
  • 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)
Reply
  • 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)
Children
No Data