Who started workflow?
PostPosted:Wed Apr 03, 2013 12:26 pm
How can I store username of who started the workflow? 
Because information matters
https://forum.openkm.com/
pavila wrote:Go to http://docs.jboss.com/jbpm/v3/userguide ... ement.html and search for swimlane initiator.Thank you!
public class GetWorkflowCreator implements AssignmentHandler {
/**
* This class assigns the task at the user who started the workflow.
*/
private static final long serialVersionUID = 1L;
@Override
public void assign(Assignable assignable, ExecutionContext executionContext) throws Exception {
// TODO Auto-generated method stub
Session s = JCRUtils.getSession();
String user = s.getUserID();
s.logout();
assignable.setActorId(user);
}
}