Hello,
I have been able to find some pieces of what is needed to implement this change, some questions remain I hope you can help with.
We assign a task to a Context Role which has a Group as its members. This assigns a Work Item to each group member and accepts an ANY vote. We would like to capture the participant who completed a task, and replace the current Role participants in the workflow with that individual.
Here's what I know:
1. To Capture the participant who completed the Work Item: Task_Complete_User = (wt.org.WTUser)wt.session.SessionMgr.getPrincipal(); from
Here's what I need help on still:
2. How to Remove existing Principal in the Role
3. How to Add Task_Complete_User in to Role