[jboss-user] [jBPM] - setActorID for Swimlane in JBPM5

Aditya Gaurav do-not-reply at jboss.com
Tue Feb 26 04:49:25 EST 2013


Aditya Gaurav [https://community.jboss.org/people/e3aa3b] created the discussion

"setActorID for Swimlane in JBPM5"

To view the discussion, visit: https://community.jboss.org/message/799559#799559

--------------------------------------------------------------
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
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799559#799559]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130226/4ad7021b/attachment-0001.html 


More information about the jboss-user mailing list