-
1. Re: jbpm5 integrtation through api
aapthorp Dec 11, 2010 9:46 AM (in response to hmesha)I have the same question. I've started to look at the JBPM5 code to see whether the integration I have done with JBPM3 and 4 will be forward compatible.
From what I can see the JBPM4 API and PVM no longer exists, unless I'm looking in the wrong place.
I guess there is a hint in the fact that most of the source code refers to drools source.
-
2. Re: jbpm5 integrtation through api
hmesha Dec 13, 2010 12:01 PM (in response to aapthorp)Now both of us have the same question. It'd be great if someone can provide some directions.
-
3. Re: jbpm5 integrtation through api
krisverlaenen Dec 15, 2010 11:52 AM (in response to hmesha)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:
Everything related to task management, use a task client:
If you have specific questions, just let us know
Kris