[jboss-user] [jBPM] - Re: jbpm5 integrtation through api

Kris Verlaenen do-not-reply at jboss.com
Wed Dec 15 11:52:56 EST 2010


Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: jbpm5 integrtation through api"

To view the discussion, visit: http://community.jboss.org/message/576204#576204

--------------------------------------------------------------
You can use the integration api as defined in the gwt modules (which would be a very good idea if you actually want to offer these APIs using a REST service), or you could just use the underlying api to get the information you need (just like the gwt implementations are doing).  But the gwt implementation is a fully functional example, so you can definitely take a look at that.

There are numerous APIs that you can use to do what you are describing.  I would suggest looking through the documentation; examples and API to see how they are done.  Some pointers:

Everything related to loading process definitions:
        KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
        kbuilder.add(ResourceFactory.newClassPathResource("BPMN2-MinimalProcess.bpmn2"), ResourceType.BPMN2);
        KnowledgeBase kbase = kbuilder.newKnowledgeBase();

Creating a session:
        StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();

Starting a process instance:
        ksession.startProcess(processId)

Everything about monitoring your process instances, use a history logger:
 https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/jbpm-5.0-SNAPSHOT-docs-build/jbpm-docs/html/ch07.html#d0e1687 https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/jbpm-5.0-SNAPSHOT-docs-build/jbpm-docs/html/ch07.html#d0e1687

Everything related to task management, use a task client:
 https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/jbpm-5.0-SNAPSHOT-docs-build/jbpm-docs/html/ch.Human_Tasks.html#d0e1446 https://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/jbpm-5.0-SNAPSHOT-docs-build/jbpm-docs/html/ch.Human_Tasks.html#d0e1446

If you have specific questions, just let us know  ;) 

Kris
--------------------------------------------------------------

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

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/20101215/f3e5c1d9/attachment.html 


More information about the jboss-user mailing list