presentation jbpm community day 2009 - first steps with jbpm4

17
FIRST STEPS WITH JBPM4 Joram Barrez jBPM Community Day 2009

Upload: joram-barrez

Post on 07-Dec-2014

7.202 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Presentation jBPM Community Day 2009 - First steps with jBPM4

FIRST STEPS WITH JBPM4

Joram BarrezjBPM Community Day 2009

Page 2: Presentation jBPM Community Day 2009 - First steps with jBPM4

WH

OAM

I

• jBPM consultant at

• Co-founder of

• jBPM blog: http://www.jorambarrez.be

./whoami

jBPM Community Day 2009

Page 3: Presentation jBPM Community Day 2009 - First steps with jBPM4

GO

ALS

• Tech demo: demonstration of new jBPM4 API

• Showing how easy it is to use jBPM in your application

• Extracting business insight from the new history tables

• Community discussion?

• All in the next 20 minutes or so …

./Goals

jBPM Community Day 2009

Page 4: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

Managing deployments

Deployment createDeployment()

deployment.addResourceFromClasspath(“")

ProcessDefinitionQuery createProcessDefinitionQuery();

Page 5: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

ExecutionService

Managing runtime executions

startProcessInstanceById(pd_id)

signalExecutionByXXX

Get/setVariable(s)

Page 6: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

ExecutionService

TaskService

Managing tasks

takeTask(actor)

completeTask(outcom)

cancelTask(task)

AssignTask(actor)

findTaskXXX

Page 7: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

ExecutionService

TaskService

HistoryService

Managing past runtime data

HistoryActivityInstanceQuery query = historyService.createHistoryActivityInstanceQuery().activityName("Wait").executionId(“123");Query.execute

avgDurationPerActivity(pd_id);

Page 8: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

ExecutionService

TaskService

HistoryService

ManagementService Process engine maintenance

executeJob(long jobDbid)

Page 9: Presentation jBPM Community Day 2009 - First steps with jBPM4

JBPM4 CO

NCEPTS

./jBPM4 API

jBPM Community Day 2009

Process engine

RepositoryService

ExecutionService

TaskService

HistoryService

ManagementService

Your app

Only communication with enginethrough interfaces!

Page 10: Presentation jBPM Community Day 2009 - First steps with jBPM4

FEATURES

• Clean client API (ideally you shouldn't be using anything else)

• Simplified DB schema• runtime vs historical data separation!• eg process instance is in DB only during execution, afterwards it is deleted and stored in a history table

• Performance boost (and no method-chaining)

• Fancy web console (GWT)

./Features on first sight

jBPM Community Day 2009

Page 11: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEM

O./Demo use case

jBPM Community Day 2009

?

Page 12: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEM

O./Demo use case

jBPM Community Day 2009

• Problem: using coins for parking is sooooo 90's• The solution

+ =

Page 13: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEM

O./The process

jBPM Community Day 2009

Check blacklistAnd subscription

Ask for customer approval on

machine

Wait until customer returnsAnd send second sms

Bill customer

Page 14: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEM

O./demo

jBPM Community Day 2009

Time spent jBPMGUIBluetooth

Page 15: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEM

O./demo

jBPM Community Day 2009

GUI

ParkingBpmService

controllers

Page 16: Presentation jBPM Community Day 2009 - First steps with jBPM4

DEMO

Page 17: Presentation jBPM Community Day 2009 - First steps with jBPM4

THE WORLD WITHOUT BPM