[jboss-user] [jBPM] - Re: Using BPMN2 processes created with guvnor console
Maciej Swiderski
do-not-reply at jboss.com
Wed Dec 28 03:26:39 EST 2011
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion
"Re: Using BPMN2 processes created with guvnor console"
To view the discussion, visit: http://community.jboss.org/message/643488#643488
--------------------------------------------------------------
Once you have knowledge base yo should create session from it and then start your process by id:
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
ksession.startProcess("process.id");
// or start with params
ksession.startProcess("process.id", params);
If you need persistence than you should use JPAKnowledgeService to create session.
StatefulKnowledgeSession ksession = JPAKnowledgeService.newStatefulKnowledgeSession( kbase, null, env );
For details take a look at http://docs.jboss.org/jbpm/v5.2/javadocs/ java docs and http://docs.jboss.org/jbpm/v5.2/userguide/ documentation
HTH
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/643488#643488]
Start a new discussion in jBPM at Community
[http://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/20111228/302fd8a3/attachment.html
More information about the jboss-user
mailing list