Hi,
How can we dynamically set the actor ID for a Swimlane in JBPM5? Following snippet doesnt persist the information:
=====================
ProcessInstance pi = ksession.startProcess("com.sample.evaluation1");
Process p = pi.getProcess();
WorkflowProcess wfp = (WorkflowProcess)p;
WorkflowProcessInstance wfpi = (WorkflowProcessInstance)pi;
SwimlaneContextInstance slci = (SwimlaneContextInstance)wfpi.getContextInstance(SwimlaneContext.SWIMLANE_SCOPE);
SwimlaneContext sc = slci.getSwimlaneContext();
Swimlane s1 = sc.getSwimlane("SL1");
s1.setActorId("krisv");
=====================
Do I need to follow above calls with a persistence call to save the session or something? Any pointers will be really helpful.
Thanks