[jboss-user] [jBPM] - Re: setActorID for Swimlane in JBPM5
Maciej Swiderski
do-not-reply at jboss.com
Tue Feb 26 14:08:53 EST 2013
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]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130226/55999386/attachment-0001.html
More information about the jboss-user
mailing list