Community Tip - You can change your system assigned username to something more personal in your community settings. X
Hi.
I have Assigned Activity in workflow.
How can i get who completed this assigned activity and comments?
I need some java code to init my workflow variables by these values.
Where should i put this code in Workflow editor?
Thanks.
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.