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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

How to get "completedBy" Users of a workflow activity?

DimitriVanWijk
1-Newbie

How to get "completedBy" Users of a workflow activity?

Hi All,

I would like to get the users that completed a workflow task and put them in a variable in order to reuse them in further tasks.

I tried to use expression robot with API to do that but have difficulties to find solutions : I get the Assigned activity or work item object but cant find a method to get the users that completed it.

Does someone know how to get the users that completed an activity from this activity?

Or if there is another way to do that ?

Thanks a lot for your answers.

Dimitri

2 REPLIES 2
rwelch
6-Contributor
(To:DimitriVanWijk)

Dimitri,

Once you have a WorkItem, you can can check to see if it

is complete with:

aWorkItem.isComplete();

And then do something like this:

aWorkItem.getOwnership().getOwner().getFullName();

to get the name of the owner of the work item.

Hope this helps,

Ron

Hello Ron,

Thanks a lot for this answer. Sur it helps !

I did'nt know for the "getOwnership" method so I will try this out and come back soon to give results !

Best regards,

Announcements

Top Tags