I have to deactivate some users but they have 50-100 active task. We can find-out the assigned group names by active process instances but it would be a hectic task to do via process instances so I thought to automate this manual process. I have performed below steps:
Note : There is a possibility that a user may have added into multiple groups for different application.
Did you check the task property tp!assignees? This keeps the list of users and groups the task is assigned to. This is separate to the task owner.
Thank-you for your response.
From tp!assignees I am getting the current assignee's. In my scenario I need previously assigned group names.
I know. It depends on what your users are doing. If the user reassigns a task, then these will be the assignees, but as long and the user just accepts a task or gives it back to the group, tp!assignees will be the list of initial assignees.
I am still not getting the list of groups. Here task is already accepted by the user, I need to reassign those task back to the groups, but I'm not sure how I can get the history of the task assignment which can tell me to which group task was assigned earlier before being accepted by the user. Since there are multiple such users who have left organization with active task in their queue, I need to reassign those tasks to actual groups before deactivating those users.
This is how my task looks like after I accepted it.
task_assignee_owner() -> me
tp!assignees -> original assignees
Using the smart service reassign task I can use that information to assign it back to the group.
Hi Stefan Helzle,
Thanks for your quick response. I have implemented that and it worked.
Great to hear. You are welcome :-)
Besides this solution, you can even get the history of the process by using getProcessHistoryInfo() function which is exposed through process history plugin - https://community.appian.com/b/appmarket/posts/process-history
Discussion posts and replies are publicly visible
© 2020 Appian. All rights reserved.