I'm using jBPM 3.3.1.GA embedded in another app, and can't seem to get the initiator of the process to be automatically assigned to the swimlane associated with a task in my start-state. The documentation seems to suggest that all I have to do is set up a swimlane with no assignment, and add a task with that swimlane to the start-state. My process def. looks like this:
<process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="ChangeManagement"> <swimlane name="zadavatel"/> <start-state name="Start"> <task name="start task" swimlane="zadavatel"/> <transition to="Registration"></transition> </start-state> ....
context.setActorId(username); ProcessInstance instance = context.newProcessInstance(processDefinition.getLabel()); instance.signal(); context.save(instance);
Hmm... I'm almost sure I had this working. I used the name 'initiator' though for the swimlane. On the one hand I cannot imagine this is required, but it probably is easy to give it a try.