SlideShare a Scribd company logo
1 of 20
BPM & Activiti
Do Duy Trung
BPMN
BPMN = BPM + N
- BPM: Business Process Modeling
- N: Notation
BPMN 1.x
● Notation for business experts to
analyse, document and discuss
business processes.
● Activities, Gateways, Events
Control & Data flow (Sequence
Flow, Data Objects)
● Organisational modelling (Pools,
Lanes)
● No defined execution semantics!
● Calls for a technical language for
business process automation
BPEL
● Standardized XML-based
language for executable,
technical business processes
● Hybrid language: block-
structured & graph-based Well-
defined execution language
● No dead-locks, no lack-of-
synchronization
● Graphs must be acyclic
● Tied to concepts of SOA/Web
Services
● No support for human activities
● No notation!
BPMN + BPEL
● Established Approach
o Business experts create
BPMN models
o IT experts translate them to
BPEL in order to make them
executable
● Problem
o Mapping BPMN to BPEL is
not straight forward
 Lax vs. strict semantics
 Loops / Blocks
 Lack of technical details in BPMN models
o Roundtripping is difficult
BPMN 2
● Best of both worlds
o A notation (subset) for BPEL
o A meta model and execution
semantics for BPMN
● Notational support for
Choreographies
● BPMN 2.0 models
o are now interchangeable
o can be executed
o can carry technical details
Types of BPMS
● The “commercial” model
o Standards-based
o Proprietary extension
o Closed-source
o Typically well tested & supported
o Often combined with consulting &
support offerings
● The “open source” model
o Standards-based and/or proprietary
o Source code is available for free
o Tech experts needed to get started
● The “commercial open source” model
o Based on open source
o Sell technical experience, glue code,
consulting & support
o E.g. Intalio, WSO2, Redhat,…
● The “embedded” approach
o Light-weight process engine
o Can be easily integrated into your
application
o Java-centric
o E.g. jBPM, Drools Flow, Activiti
● The “SOA” approach
o Architecture typically more heavy-
weight
o Orchestrates services to achieve a
higher business goal
o Service implementation is hidden by
an interface and is exchangeable
(mostly Web Services).
o E.g. Apache ODE, IBM, Oracle,
SAP,…
Activiti
http://activiti.org/
Activiti BPM Components
Activiti BPM Components
Activiti
- Modeler: a web-based graphical workflow authoring
- Designer: an Eclipse-plugin for developing workflow
- Engine: the core workflow processor
- Explorer: a web tool to deploy process definitions
- Cycle: a web app for collabration between business
users and software engineers
Database Table Names
● ACT_RE_*: RE → repository: process definitions &
resources (images, rules, etc.).
● ACT_RU_*: RU → runtime: process instances, user
tasks, variables, jobs, etc.
● ACT_ID_*: ID → identity: users, groups, etc.
● ACT_HI_*: HI → history: past process instances,
variables, tasks, etc.
● ACT_GE_*: GE → general data.
Activiti API
Query API
• HistoricProcessInstances:
createHistoricProcessInstanceQuery()
• HistoricVariableInstances:
createHistoricVariableInstanceQuery()
• HistoricActivityInstances:
createHistoricActivityInstanceQuery()
• HistoricDetails:
createHistoricDetailQuery()
• HistoricTaskInstances:
createHistoricTaskInstanceQuery()
→ Get 10 HistoricProcessInstances that are finished
and which took the most time to complete (the longest
duration) of all finished processes with definition ‘XXX‘:
historyService.createHistoricProcessInstanceQuery(
) .finished() .processDefinitionId(“XXX")
.orderByProcessInstanceDuration().desc()
.listPage(0, 10);
→ Get the last Historic Activity Instance of type
'serviceTask' that has been finished in any process that
uses the process definition with id XXX.
historyService.createHistoricActivityInstanceQuery()
.activityType("serviceTask")
.processDefinitionId("XXX") .finished()
.orderByHistoricActivityInstanceEndTime().desc()
.listPage(0, 1);
...
Activiti REST API
Remote communication with Activiti
Embeddable Java Engine vs Standalone Servers
Activiti Usage
Activiti Explorer
Activiti Designer
Activiti Modeler / Activiti Cloud
Demo
Q & A

More Related Content

What's hot

Order Processing at Scale: Zalando at Camunda Community Day
Order Processing at Scale: Zalando at Camunda Community DayOrder Processing at Scale: Zalando at Camunda Community Day
Order Processing at Scale: Zalando at Camunda Community DayZalando Technology
 
Simplify the complexity of your business processes
Simplify the complexity of your business processesSimplify the complexity of your business processes
Simplify the complexity of your business processesKris Verlaenen
 
jBPM Suite admin workshop
jBPM Suite admin workshopjBPM Suite admin workshop
jBPM Suite admin workshopJózsef Lenti
 
jBPM Migration - generating your process future
jBPM Migration - generating your process futurejBPM Migration - generating your process future
jBPM Migration - generating your process futureEric D. Schabell
 
Process Orchestration with Flowable and Spring Boot
Process Orchestration with Flowable and Spring BootProcess Orchestration with Flowable and Spring Boot
Process Orchestration with Flowable and Spring BootChavdar Baikov
 
Practical Application of API-First in microservices development
Practical Application of API-First in microservices developmentPractical Application of API-First in microservices development
Practical Application of API-First in microservices developmentChavdar Baikov
 
Integrated Requirements Management with Serena Dimensions RM 02-2016
Integrated Requirements Management with Serena Dimensions RM 02-2016Integrated Requirements Management with Serena Dimensions RM 02-2016
Integrated Requirements Management with Serena Dimensions RM 02-2016Serena Software
 
Webinar get move_on_with_bpmsuite6
Webinar get move_on_with_bpmsuite6Webinar get move_on_with_bpmsuite6
Webinar get move_on_with_bpmsuite6Eric D. Schabell
 
Camunda GraphQL Extension (09/2017 Berlin)
Camunda GraphQL Extension (09/2017 Berlin)Camunda GraphQL Extension (09/2017 Berlin)
Camunda GraphQL Extension (09/2017 Berlin)Harald J. Loydl
 
Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Slobodan Lohja
 
jBPM5 (Argentina workshop)
jBPM5 (Argentina workshop)jBPM5 (Argentina workshop)
jBPM5 (Argentina workshop)Kris Verlaenen
 
Camunda BPM at Zalando: Order Processing at scale
Camunda BPM at Zalando: Order Processing at scaleCamunda BPM at Zalando: Order Processing at scale
Camunda BPM at Zalando: Order Processing at scalecamunda services GmbH
 
[20160314][CUHK][CSCI4140]Life of an Agile Team]
[20160314][CUHK][CSCI4140]Life of an Agile Team][20160314][CUHK][CSCI4140]Life of an Agile Team]
[20160314][CUHK][CSCI4140]Life of an Agile Team]Wong Hoi Sing Edison
 
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...apidays
 
Alfresco Day Barcelona 2016 - Conversaciones con Partners: Pernexas
Alfresco Day Barcelona 2016 - Conversaciones con Partners: PernexasAlfresco Day Barcelona 2016 - Conversaciones con Partners: Pernexas
Alfresco Day Barcelona 2016 - Conversaciones con Partners: PernexasAlfresco Software
 
Process Automation: an Update from the Trenches
Process Automation: an Update from the TrenchesProcess Automation: an Update from the Trenches
Process Automation: an Update from the TrenchesKris Verlaenen
 
Process-driven applications
Process-driven applicationsProcess-driven applications
Process-driven applicationsKris Verlaenen
 
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...Kris Verlaenen
 

What's hot (19)

Order Processing at Scale: Zalando at Camunda Community Day
Order Processing at Scale: Zalando at Camunda Community DayOrder Processing at Scale: Zalando at Camunda Community Day
Order Processing at Scale: Zalando at Camunda Community Day
 
Simplify the complexity of your business processes
Simplify the complexity of your business processesSimplify the complexity of your business processes
Simplify the complexity of your business processes
 
jBPM Suite admin workshop
jBPM Suite admin workshopjBPM Suite admin workshop
jBPM Suite admin workshop
 
jBPM Migration - generating your process future
jBPM Migration - generating your process futurejBPM Migration - generating your process future
jBPM Migration - generating your process future
 
Process Orchestration with Flowable and Spring Boot
Process Orchestration with Flowable and Spring BootProcess Orchestration with Flowable and Spring Boot
Process Orchestration with Flowable and Spring Boot
 
Practical Application of API-First in microservices development
Practical Application of API-First in microservices developmentPractical Application of API-First in microservices development
Practical Application of API-First in microservices development
 
Integrated Requirements Management with Serena Dimensions RM 02-2016
Integrated Requirements Management with Serena Dimensions RM 02-2016Integrated Requirements Management with Serena Dimensions RM 02-2016
Integrated Requirements Management with Serena Dimensions RM 02-2016
 
Webinar get move_on_with_bpmsuite6
Webinar get move_on_with_bpmsuite6Webinar get move_on_with_bpmsuite6
Webinar get move_on_with_bpmsuite6
 
Camunda GraphQL Extension (09/2017 Berlin)
Camunda GraphQL Extension (09/2017 Berlin)Camunda GraphQL Extension (09/2017 Berlin)
Camunda GraphQL Extension (09/2017 Berlin)
 
BPMN2 primer
BPMN2 primerBPMN2 primer
BPMN2 primer
 
Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021Intro to SpringBatch NoSQL 2021
Intro to SpringBatch NoSQL 2021
 
jBPM5 (Argentina workshop)
jBPM5 (Argentina workshop)jBPM5 (Argentina workshop)
jBPM5 (Argentina workshop)
 
Camunda BPM at Zalando: Order Processing at scale
Camunda BPM at Zalando: Order Processing at scaleCamunda BPM at Zalando: Order Processing at scale
Camunda BPM at Zalando: Order Processing at scale
 
[20160314][CUHK][CSCI4140]Life of an Agile Team]
[20160314][CUHK][CSCI4140]Life of an Agile Team][20160314][CUHK][CSCI4140]Life of an Agile Team]
[20160314][CUHK][CSCI4140]Life of an Agile Team]
 
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
apidays LIVE Australia 2020 - Leveraging DevOps to visualize your digital eco...
 
Alfresco Day Barcelona 2016 - Conversaciones con Partners: Pernexas
Alfresco Day Barcelona 2016 - Conversaciones con Partners: PernexasAlfresco Day Barcelona 2016 - Conversaciones con Partners: Pernexas
Alfresco Day Barcelona 2016 - Conversaciones con Partners: Pernexas
 
Process Automation: an Update from the Trenches
Process Automation: an Update from the TrenchesProcess Automation: an Update from the Trenches
Process Automation: an Update from the Trenches
 
Process-driven applications
Process-driven applicationsProcess-driven applications
Process-driven applications
 
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...
bpmNEXT 2018: Exploiting cloud infrastructure for efficient business process ...
 

Similar to Bpm & activiti

Solution Design & Architecture.pptx
Solution Design & Architecture.pptxSolution Design & Architecture.pptx
Solution Design & Architecture.pptxNikhileshSathyavarap
 
Resume ETL-Informatica developer
Resume  ETL-Informatica developerResume  ETL-Informatica developer
Resume ETL-Informatica developerajayagrawal92
 
Raju_Datla_Resume
Raju_Datla_ResumeRaju_Datla_Resume
Raju_Datla_ResumeVEERA DATLA
 
Resume_Md ZakirHussain
Resume_Md ZakirHussainResume_Md ZakirHussain
Resume_Md ZakirHussainzakir hussain
 
Oracle Forms Modernization Roadmap
Oracle Forms Modernization RoadmapOracle Forms Modernization Roadmap
Oracle Forms Modernization RoadmapKai-Uwe Möller
 
Designing salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh DennisDesigning salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh DennisSakthivel Madesh
 
The software management and engineering in the AI-oriented projects tutorial
The software management and engineering in the AI-oriented projects tutorialThe software management and engineering in the AI-oriented projects tutorial
The software management and engineering in the AI-oriented projects tutorialrpietruszkiewicz
 
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...Microsoft Flow session : tips, pitfalls, warnings to be known before starting...
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...serge luca
 
Microservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learnedMicroservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learnedLuram Archanjo
 
Angular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - LinagoraAngular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - LinagoraLINAGORA
 
Document management in sap pm 12b
Document management in sap pm 12bDocument management in sap pm 12b
Document management in sap pm 12bGiuseppe Caselli
 
Webinar september 2013
Webinar september 2013Webinar september 2013
Webinar september 2013Marc Gille
 
Pioneering a path to the future with JBoss BPM
Pioneering a path to the future with JBoss BPMPioneering a path to the future with JBoss BPM
Pioneering a path to the future with JBoss BPMEric D. Schabell
 
OpenERP - PLM, Omnia Solutions
OpenERP - PLM, Omnia SolutionsOpenERP - PLM, Omnia Solutions
OpenERP - PLM, Omnia SolutionsOdoo
 

Similar to Bpm & activiti (20)

Solution Design & Architecture.pptx
Solution Design & Architecture.pptxSolution Design & Architecture.pptx
Solution Design & Architecture.pptx
 
Resume ETL-Informatica developer
Resume  ETL-Informatica developerResume  ETL-Informatica developer
Resume ETL-Informatica developer
 
Raju_Datla_Resume
Raju_Datla_ResumeRaju_Datla_Resume
Raju_Datla_Resume
 
20100223 bpmn
20100223 bpmn20100223 bpmn
20100223 bpmn
 
Umair Kardar Resume
Umair Kardar ResumeUmair Kardar Resume
Umair Kardar Resume
 
Resume
ResumeResume
Resume
 
Zakir_Hussain_cv
Zakir_Hussain_cvZakir_Hussain_cv
Zakir_Hussain_cv
 
ZakirHussain
ZakirHussainZakirHussain
ZakirHussain
 
Resume_Md ZakirHussain
Resume_Md ZakirHussainResume_Md ZakirHussain
Resume_Md ZakirHussain
 
Oracle Forms Modernization Roadmap
Oracle Forms Modernization RoadmapOracle Forms Modernization Roadmap
Oracle Forms Modernization Roadmap
 
Designing salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh DennisDesigning salesforce solutions for reuse - Josh Dennis
Designing salesforce solutions for reuse - Josh Dennis
 
The software management and engineering in the AI-oriented projects tutorial
The software management and engineering in the AI-oriented projects tutorialThe software management and engineering in the AI-oriented projects tutorial
The software management and engineering in the AI-oriented projects tutorial
 
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...Microsoft Flow session : tips, pitfalls, warnings to be known before starting...
Microsoft Flow session : tips, pitfalls, warnings to be known before starting...
 
Microservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learnedMicroservices as an evolutionary architecture: lessons learned
Microservices as an evolutionary architecture: lessons learned
 
Angular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - LinagoraAngular (v2 and up) - Morning to understand - Linagora
Angular (v2 and up) - Morning to understand - Linagora
 
Document management in sap pm 12b
Document management in sap pm 12bDocument management in sap pm 12b
Document management in sap pm 12b
 
Webinar september 2013
Webinar september 2013Webinar september 2013
Webinar september 2013
 
Dataflow.pptx
Dataflow.pptxDataflow.pptx
Dataflow.pptx
 
Pioneering a path to the future with JBoss BPM
Pioneering a path to the future with JBoss BPMPioneering a path to the future with JBoss BPM
Pioneering a path to the future with JBoss BPM
 
OpenERP - PLM, Omnia Solutions
OpenERP - PLM, Omnia SolutionsOpenERP - PLM, Omnia Solutions
OpenERP - PLM, Omnia Solutions
 

Recently uploaded

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park masabamasaba
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park masabamasaba
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplatePresentation.STUDIO
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...Health
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...masabamasaba
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...masabamasaba
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...masabamasaba
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationJuha-Pekka Tolvanen
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension AidPhilip Schwarz
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...chiefasafspells
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...masabamasaba
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfonteinmasabamasaba
 

Recently uploaded (20)

WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
WSO2Con2024 - From Code To Cloud: Fast Track Your Cloud Native Journey with C...
 
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park %in ivory park+277-882-255-28 abortion pills for sale in ivory park
%in ivory park+277-882-255-28 abortion pills for sale in ivory park
 
WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?WSO2CON 2024 - Does Open Source Still Matter?
WSO2CON 2024 - Does Open Source Still Matter?
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
Abortion Pills In Pretoria ](+27832195400*)[ 🏥 Women's Abortion Clinic In Pre...
 
WSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security ProgramWSO2CON 2024 - How to Run a Security Program
WSO2CON 2024 - How to Run a Security Program
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
AI & Machine Learning Presentation Template
AI & Machine Learning Presentation TemplateAI & Machine Learning Presentation Template
AI & Machine Learning Presentation Template
 
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With SimplicityWSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
WSO2Con2024 - Enabling Transactional System's Exponential Growth With Simplicity
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
%+27788225528 love spells in Boston Psychic Readings, Attraction spells,Bring...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
WSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaSWSO2CON 2024 Slides - Open Source to SaaS
WSO2CON 2024 Slides - Open Source to SaaS
 
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
%+27788225528 love spells in Knoxville Psychic Readings, Attraction spells,Br...
 
What Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the SituationWhat Goes Wrong with Language Definitions and How to Improve the Situation
What Goes Wrong with Language Definitions and How to Improve the Situation
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
Love witchcraft +27768521739 Binding love spell in Sandy Springs, GA |psychic...
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 

Bpm & activiti

  • 1. BPM & Activiti Do Duy Trung
  • 2. BPMN BPMN = BPM + N - BPM: Business Process Modeling - N: Notation
  • 3. BPMN 1.x ● Notation for business experts to analyse, document and discuss business processes. ● Activities, Gateways, Events Control & Data flow (Sequence Flow, Data Objects) ● Organisational modelling (Pools, Lanes) ● No defined execution semantics! ● Calls for a technical language for business process automation BPEL ● Standardized XML-based language for executable, technical business processes ● Hybrid language: block- structured & graph-based Well- defined execution language ● No dead-locks, no lack-of- synchronization ● Graphs must be acyclic ● Tied to concepts of SOA/Web Services ● No support for human activities ● No notation!
  • 4. BPMN + BPEL ● Established Approach o Business experts create BPMN models o IT experts translate them to BPEL in order to make them executable ● Problem o Mapping BPMN to BPEL is not straight forward  Lax vs. strict semantics  Loops / Blocks  Lack of technical details in BPMN models o Roundtripping is difficult BPMN 2 ● Best of both worlds o A notation (subset) for BPEL o A meta model and execution semantics for BPMN ● Notational support for Choreographies ● BPMN 2.0 models o are now interchangeable o can be executed o can carry technical details
  • 5. Types of BPMS ● The “commercial” model o Standards-based o Proprietary extension o Closed-source o Typically well tested & supported o Often combined with consulting & support offerings ● The “open source” model o Standards-based and/or proprietary o Source code is available for free o Tech experts needed to get started ● The “commercial open source” model o Based on open source o Sell technical experience, glue code, consulting & support o E.g. Intalio, WSO2, Redhat,… ● The “embedded” approach o Light-weight process engine o Can be easily integrated into your application o Java-centric o E.g. jBPM, Drools Flow, Activiti ● The “SOA” approach o Architecture typically more heavy- weight o Orchestrates services to achieve a higher business goal o Service implementation is hidden by an interface and is exchangeable (mostly Web Services). o E.g. Apache ODE, IBM, Oracle, SAP,…
  • 9. Activiti - Modeler: a web-based graphical workflow authoring - Designer: an Eclipse-plugin for developing workflow - Engine: the core workflow processor - Explorer: a web tool to deploy process definitions - Cycle: a web app for collabration between business users and software engineers
  • 10. Database Table Names ● ACT_RE_*: RE → repository: process definitions & resources (images, rules, etc.). ● ACT_RU_*: RU → runtime: process instances, user tasks, variables, jobs, etc. ● ACT_ID_*: ID → identity: users, groups, etc. ● ACT_HI_*: HI → history: past process instances, variables, tasks, etc. ● ACT_GE_*: GE → general data.
  • 12. Query API • HistoricProcessInstances: createHistoricProcessInstanceQuery() • HistoricVariableInstances: createHistoricVariableInstanceQuery() • HistoricActivityInstances: createHistoricActivityInstanceQuery() • HistoricDetails: createHistoricDetailQuery() • HistoricTaskInstances: createHistoricTaskInstanceQuery() → Get 10 HistoricProcessInstances that are finished and which took the most time to complete (the longest duration) of all finished processes with definition ‘XXX‘: historyService.createHistoricProcessInstanceQuery( ) .finished() .processDefinitionId(“XXX") .orderByProcessInstanceDuration().desc() .listPage(0, 10); → Get the last Historic Activity Instance of type 'serviceTask' that has been finished in any process that uses the process definition with id XXX. historyService.createHistoricActivityInstanceQuery() .activityType("serviceTask") .processDefinitionId("XXX") .finished() .orderByHistoricActivityInstanceEndTime().desc() .listPage(0, 1); ...
  • 13. Activiti REST API Remote communication with Activiti
  • 14. Embeddable Java Engine vs Standalone Servers
  • 18. Activiti Modeler / Activiti Cloud
  • 19. Demo
  • 20. Q & A