12
JBPM 5 Community Trainning Introductory Examples

JBPM5 Community Trainning Baby Steps Examples

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: JBPM5 Community Trainning Baby Steps Examples

JBPM 5 Community Trainning

Introductory Examples

Page 2: JBPM5 Community Trainning Baby Steps Examples

01 - Hello BPM

Page 3: JBPM5 Community Trainning Baby Steps Examples

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

01 - Hello BPM : Exercise

1. Add your own greeting after ours!

Page 5: JBPM5 Community Trainning Baby Steps Examples

02 - Hello Rules

Page 6: JBPM5 Community Trainning Baby Steps Examples

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

02 - Hello Rules : Exercise

1. Add the evening greeting according to your localeNo java required :)

Page 8: JBPM5 Community Trainning Baby Steps Examples

03 - Greeting Process

Page 9: JBPM5 Community Trainning Baby Steps Examples

03 - Greeting Rules

Page 10: JBPM5 Community Trainning Baby Steps Examples

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

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

To be continued....

follow @salaboy and @jmfaerman for notification and updates