presentation jbpm community day 2009 - first steps with jbpm4
DESCRIPTION
TRANSCRIPT
![Page 1: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/1.jpg)
FIRST STEPS WITH JBPM4
Joram BarrezjBPM Community Day 2009
![Page 2: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/2.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/3.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/4.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/5.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/6.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/7.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/8.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/9.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/10.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/11.jpg)
DEM
O./Demo use case
jBPM Community Day 2009
?
![Page 12: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/12.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/13.jpg)
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](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/14.jpg)
DEM
O./demo
jBPM Community Day 2009
Time spent jBPMGUIBluetooth
![Page 15: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/15.jpg)
DEM
O./demo
jBPM Community Day 2009
GUI
ParkingBpmService
controllers
![Page 16: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/16.jpg)
DEMO
![Page 17: Presentation jBPM Community Day 2009 - First steps with jBPM4](https://reader033.vdocuments.net/reader033/viewer/2022052617/54845c52b4af9f51288b4601/html5/thumbnails/17.jpg)
THE WORLD WITHOUT BPM