Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: setActorID for Swimlane in JBPM5" To view the discussion, visit: https://community.jboss.org/message/799709#799709 -------------------------------------------------------------- here is how you could define command and execute it on ksession so it gets executed within transaction ksession.execute(new GenericCommand<Void>() { public Vold execute(Context context) { StatefulKnowledgeSession ksession = ((KnowledgeCommandContext) context).getStatefulKnowledgesession(); org.jbpm.process.instance.ProcessInstance processInstance = (org.jbpm.process.instance.ProcessInstance) ksession.getProcessInstance(piId); // put your logic here } }); HTH -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/799709#799709] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
