-
1. Re: implementation of org.drools.definition.process.getId() method ??
hicham1980 Feb 21, 2012 5:29 PM (in response to hicham1980)no one hwo think to me !!!
-
2. Re: implementation of org.drools.definition.process.getId() method ??
eaa Feb 22, 2012 4:06 AM (in response to hicham1980)You have org.jbpm.process.core.Process that implements org.drools.definition.process.Process
Then you have:
- org.jbpm.process.core.impl.ProcessImpl implements org.drools.definition.process.Process
- org.jbpm.workflow.core.impl.WorkflowProcessImpl extends org.jbpm.process.core.impl.ProcessImpl
- org.jbpm.ruleflow.core.RuleFlowProcess extends org.jbpm.workflow.core.impl.WorkflowProcessImpl
getId() is implemented in org.jbpm.process.core.impl.ProcessImpl, but is just a simple getter. What are you exactly looking for?
-
3. Re: implementation of org.drools.definition.process.getId() method ??
hicham1980 Feb 22, 2012 10:23 AM (in response to eaa)Thanks, but why in the documentation here http://docs.jboss.org/jbpm/v5.2/javadocs/ we can't find the classes you give me :
org.jbpm.process.core.impl.ProcessImpl
and
org.jbpm.process.core.Process
and
org.jbpm.workflow.core.impl.WorkflowProcessImpl ??
why in the documentation there is just interfaces not classes ??
i want to integrate a workflow in webapp that's why i search to understand the JBPM API ... in your opinion what's classes or interface needed to manage a process from a simple servlet ?
thanks a lot
-
4. Re: implementation of org.drools.definition.process.getId() method ??
eaa Feb 22, 2012 10:34 AM (in response to hicham1980)jBPM5 and Drools share the same API. This is why the javadoc only shows org.drools.xxx packages. If you are going to be a user of those APIs, then the classes shown in the javadoc should be enough.
If you want to go deeper, then I would suggest you to download the source code of jbpm and create the specific javadocs.
The main classes you need to understand if you want to interact with your processes are:
- KnowledgeBuilder
- KnowledgeBase
- StatefulKnowledgeSession
I would suggst you to read jBPMs documentation (the user manual) first in order to understand how can you compile, start and interact with your processes.
Best Regards,
-
5. Re: implementation of org.drools.definition.process.getId() method ??
hicham1980 Feb 22, 2012 3:09 PM (in response to eaa)Thank a looooot, but JBPM5 and Drools is the same thing isn't that ? both of those APIs are teh same !? what's the difference between them ?
can you tel me please where exactly find "source code of jbpm" ?
i have red the documentation but it's not very enough, the tutorials is good tool to undertand, but unfortunatly there are no simple ones, step by step ones in internet.
Thanks
-
6. Re: implementation of org.drools.definition.process.getId() method ??
eaa Feb 22, 2012 5:34 PM (in response to hicham1980)As I mentioned before, Drools and jBPM5 share the same API, but they are not the same.
Drools is a rule engine (and more) and jBPM5 is a process engine. The use of the same API is because jBPM5 was a module of Drools in the past (drools-flow). So, for example:
- ksession.insert(), ksession.update(), ksession.fireAllRules() belong to Drools
- ksession.startProcess(), ksession.getWorkItemManager(), ksession.signalProcess() belong to jBPM5
The thing is that, because these 2 projects are tighly coupled (and that is an advantage of jBPM5) a call to insert(), update() or fireAllRules() can affect the state of the process engine as well.
The source code of jbpm can be found here: https://github.com/droolsjbpm/jbpm
Some simple examples (even if they are not step-by-step examples) can be found here: https://github.com/esteban-aliverti/JBPM-Samples
Best Regards,
-
7. Re: implementation of org.drools.definition.process.getId() method ??
hicham1980 Feb 22, 2012 8:31 PM (in response to eaa)OK, I see, Drool is the general project and JBPM5 is like a specific case for workflow processes, thanks a lot an other time for explainations, good night
-
8. Re: implementation of org.drools.definition.process.getId() method ??
eaa Feb 23, 2012 2:51 AM (in response to hicham1980)Just to be cleare here, drools-flow used to be a specific module of Drools. After jBPM5 and Drools were separated, they are 2 different products (even if they share the same code base) with different release cycles.
Best Regards,
-
9. Re: implementation of org.drools.definition.process.getId() method ??
hicham1980 Feb 23, 2012 11:13 AM (in response to eaa)Thanks a lot