JBPM5 Community Trainning Baby Steps Examples
-
Upload
salaboy-salaboy -
Category
Technology
-
view
8.715 -
download
2
description
Transcript of JBPM5 Community Trainning Baby Steps Examples
![Page 1: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/1.jpg)
JBPM 5 Community Trainning
Introductory Examples
![Page 2: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/2.jpg)
01 - Hello BPM
![Page 3: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/3.jpg)
01 - Hello BPM : Understand
1. The BPMN2 graph2. The BPMN2 xml3. The main classes and methods of the Java API
KnowledgeBuilderadd()
KnowledgeBaseStatefulKnowledgeSession
startProcess()dispose()
![Page 4: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/4.jpg)
01 - Hello BPM : Exercise
1. Add your own greeting after ours!
![Page 5: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/5.jpg)
02 - Hello Rules
![Page 6: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/6.jpg)
02 - Hello Rules : Understand
1. The the Drools Rule Package and Language (.drl)Rule declaration: rule, endLeft Hand Side (LHS): when
PatternField ConstraintsConstraint Groups (,)Constraint Connectives (&&, ||)Binding Variable
Right Hand Side (RHS): then 2. A little more API:
StatelessKnowledgeSessionexecute()
![Page 7: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/7.jpg)
02 - Hello Rules : Exercise
1. Add the evening greeting according to your localeNo java required :)
![Page 8: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/8.jpg)
03 - Greeting Process
![Page 9: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/9.jpg)
03 - Greeting Rules
![Page 10: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/10.jpg)
03 - Greeting Process : Understand1. A very importante object:
ProcessInstance get/setVariable()
2. A little more BPMN:businessRuleTaskexclusiveGateway
gatewayDirectionconditionExpression
3. A little more DRL:ruleflow-groupfrom
4. A little more API: KnowledgeRuntimeLogger[Factory] ksession.insert()ksession.startProcess(id,params);
![Page 11: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/11.jpg)
03 - Greeting Process : Exercise
1. Add the evening greeting according to your locale2. Trace the process using the logger3. Debug the rules with breakpoints (eclipse)
![Page 12: JBPM5 Community Trainning Baby Steps Examples](https://reader034.fdocuments.net/reader034/viewer/2022051312/54622a40b4af9f5d1c8b466a/html5/thumbnails/12.jpg)
To be continued....
follow @salaboy and @jmfaerman for notification and updates