Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: Assigned Activity: how to get comments and who completed

$
0
0

Define a

 

wt.org.WTUser taskComplete

 

variable at the workflow process template level.

 

In your activity template, go to the "Variables" tab to copy that variable into and out of your task.

 

Next, go to the activity template "Transitions" tab, select the transition you are interested in (or use the "Complete" transition if you want to check this for all transitions no matter what on completion), and add this code.

 

taskComplete = (wt.org.WTUser)wt.session.SessionMgr.getPrincipal();

 

This will copy the current user who clicked task complete causing that transition to fire from the transition to the activity and from the activity up to the process where you can use it as a process variable in later robots.

 

Try it.


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>