bpmn 2 - 2019.javacro.hr-+s… · business process management initiative developed bpmn, which has...

24
BPMN 2.0 The Flowable story

Upload: others

Post on 01-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

BPMN 2.0

The Flowable story

Page 2: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

► Ante Klisovć - Team lead i developer sa dugogodišnjim iskustvom razvoja u .Net-u.Započeo je karijeru sa razvojem custom enterprise aplikacijama i usmjerio karijeru prema izradama aplikacija u teškoj industriji.

► Simon Šporer - Tech lead i developer sa dugogodišnjim iskustvom razvoja u Javi, od jednostavnih do enterprise level aplikacija. Radi već nekoliko godina u Serengetiju gdje vodi projekte, podučava i mentorira mlađe naraštaje.

Page 3: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Business Process Model and NotationBusiness Process Model and Notation is a graphical representation for specifying

business processes in a business process model. Business Process Management

Initiative developed BPMN, which has been maintained by the Object Management

Group since the two organizations merged in 2005

Page 4: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

5 osnovnih kategorija grafičkih elemenata:

► Objekti za kreiranje toka procesa

► Objekti za povezivanje elemenata

► Podatkovni elementi

► Elementi za grupiranje

► Artefakti

Page 5: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Tri skupine objekata za kreiranje toka

procesa:

► Događaji (engl. Events) –

► Aktivnosti (engl. Activities) –

Page 6: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

► Grananja (engl. Gateways) –postoji više vrsta

Page 7: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Objekti za povezivanje elementa

► Sekvencijski tok

► Tok sa porukom

► Asocijativni tok

Page 8: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Podatkovni elementi

Page 9: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

BPM događaji

► Međudogađaji – intermediate i boundary eventi

► Cancel eventi

► Cancel end event (unutar taska)

► Cancel boundary event ( pozicionirani na granici taska)

► 60 vrsta događaja

Page 10: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Vrste događaja – Events

Page 11: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Elementi za grupiranje

Page 12: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Artefakti

Tekstualna Anotacija Grupa

Page 13: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Primjer grafikona

Page 14: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged
Page 15: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

► Light-weight business process engine napisan u Javi.

► https://www.flowable.org

► https://github.com/flowable/flowable-engine

Page 16: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

IDM – Identity Management Modeler

Task App Admin

Page 17: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Koncept – core engine

BPMN Process

definitionProcess

instanceTask

Page 18: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

RepositoryService

RepositoryService repositoryService =

processEngine.getRepositoryService();

repositoryService.createDeployment()

.addClasspathResource(„primjer.bpmn20.xml").deploy();

Page 19: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

RuntimeService

RuntimeService runtimeService =

processEngine.getRuntimeService();

Map<String, Object> variables = new HashMap<String,

Object>();

ProcessInstance processInstance =

runtimeService.startProcessInstanceByKey(„primjer",

variables);

Page 20: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

TaskService

TaskService taskService = processEngine.getTaskService();

variables = new HashMap<String, Object>();

variables.put("approved", true);

taskService.complete(task.getId(), variables);

Page 21: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Java Delegate

package org.flowable;

import org.flowable.engine.delegate.DelegateExecution;

import org.flowable.engine.delegate.JavaDelegate;

public class CallExternalSystemDelegate implements JavaDelegate {

public void execute(DelegateExecution execution) {

...

}

}

Page 22: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Services

Page 23: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Strengths

Gotovo rješenjeDinamičko generiranje procesa

Weakness

Kompleksnost konfiguracije

Opportunities

Vlastita aplikacija na bazi gotovog engine-a

Threats

Bazira se na hibernate query-ima

Page 24: BPMN 2 - 2019.javacro.hr-+S… · Business Process Management Initiative developed BPMN, which has been maintained by the Object Management Group since the two organizations merged

Reference

► https://camunda.com/bpmn

► https://www.flowable.org/documentation.html