'Determine the User Who Starts A jBPM Workflow for OpenKM
I have created a workflow with Eclipse for OpenKM successfully. Now, I need to know how to get a reference to the user that started the workflow for the file/folder. Is there a way to use the executionContext object or even capture the username via an expression?
Solution 1:[1]
Yes your code helped me while define swimelane in my workflow project to get the workflow initiator name. I used below assignment in my ActionHandler workflow java class Thanks
try {
String actorName = null;
actorName = executionContext.getJbpmContext().getActorId();
}
catch (Exception e) {
actorName = "Unknown";
e.printStackTrace();
System.out.println("Error: unable determine initiator");
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Arun Chidambaram |
