Hi all,
While in a workflow, I'm trying to figure out how to assign the current user of a task to a variable and I'm just not sure how to pull it out.
Basically I have a task that is initially assigned to a pooled actor group then once a person assigns that task to themselves, I want to assign that user's name to a variable – this is the "assigned to" part of the task instance (see image). I'm sure this is pretty trivial but haven't been able to figure it out.
I've tried this but it comes back null
Any help would be greatly appreciated!
Thanks so much!
While in a workflow, I'm trying to figure out how to assign the current user of a task to a variable and I'm just not sure how to pull it out.
Basically I have a task that is initially assigned to a pooled actor group then once a person assigns that task to themselves, I want to assign that user's name to a variable – this is the "assigned to" part of the task instance (see image). I'm sure this is pretty trivial but haven't been able to figure it out.
I've tried this but it comes back null
Code: Select all
If I do:
String taskActor = executionContext.getTaskInstance().getActorId();
Code: Select all
I get the correct task ID for the task currently running.long taskId = executionContext.getTaskInstance().getId();
Any help would be greatly appreciated!
Thanks so much!
Attachments
Screen Shot 2016-06-29 at 16.44.51.png (14.18 KiB) Viewed 6680 times
Last edited by alexwgordon on Mon Oct 24, 2016 10:41 pm, edited 1 time in total.