cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Trying to get the assigned user to a task/activity

RFS
12-Amethyst
12-Amethyst

Trying to get the assigned user to a task/activity

Version: Windchill 12.0

 

Use Case: I have a task assigned to a role/group (Data Manager) where any user can complete it, and then later tasks in the workflow are assigned to the specific user (Assignee) that completed the earlier task... they took responsibility at the first and will now have to follow through.


Description:

I cannot find a java link between the wt.workflow.work.WfAssignedActivity (the "self" object in the workflow script) and the user completing it.  Currently I am using the wt.session.SessionHelper.manager.getPrincipal() for the task assigned to the Data Manager role and assigning that to the Assignee role for the future tasks (generally this works).  But in the case of a temporary calendar designation (or a quick test where I blast through the tasks as an admin), the Assignee becomes the actual user that did the task rather than the true user that was assigned it.

 

i.e. Andy, Bob, and Carl all get Task 1 and whoever completes it is the sole assignee for Task 2.  But if Bob delegates to Dave for a day and Dave does that task, then Task 2 gets assigned to Dave and not Bob.  Can I find out that Bob was the original assignee for Task 1?

 

Unfortunately this is using the Windchill classes with the incomplete documentation and I haven't been able to search out a solution.

2 REPLIES 2
avillanueva
22-Sapphire II
(To:RFS)

I would look at wt.workflow.engine.WfAssignmentEventAudit. This object should have reassignments and references to the old assignee of the task.

anursingh
Moderator
(To:RFS)

Hi @RFS,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag 

Announcements


Top Tags