+ All Categories
Home > Documents > WJAX 2012: Advanced Activiti

WJAX 2012: Advanced Activiti

Date post: 10-Dec-2014
Category:
Upload: camunda-services-gmbh
View: 1,557 times
Download: 1 times
Share this document with a friend
Description:
Folien vom Talk von Bernd Rücker und Falko Menge von der WJAX 2012. Die Demo zum SOA-Teil findet sich hier: https://app.camunda.com/confluence/display/foxUserGuide/Bank+Account+Opening. Der Code für die Fehlerbehandlungsbeispiele hier: https://bitbucket.org/camunda/outer-space-demos/src/master/bank-account-opening-error-handling
26
BPMN 2.0 und Activiti für Fortgeschrittene [email protected] [email protected]
Transcript
Page 1: WJAX 2012: Advanced Activiti

BPMN 2.0 und Activiti für Fortgeschrittene

[email protected]

[email protected]

Page 2: WJAX 2012: Advanced Activiti

Gehen wir richtig zur Sache… • EAI/SOA

• Testing

• Error-Handling & TX

• Mehr BPMN & Ausblick

• Q&A

Page 3: WJAX 2012: Advanced Activiti

Real-Life Beispiel: Kontoeröfnung

1.

2.

3.

Page 4: WJAX 2012: Advanced Activiti

Vereinfacht (für die Demo)

MQ

WS

EJB Service

Page 5: WJAX 2012: Advanced Activiti

Das Grundproblem

?

?

?

Page 6: WJAX 2012: Advanced Activiti

Eine Möglichkeit: Direkt aufrufen

Services & Resources

WS

Page 7: WJAX 2012: Advanced Activiti

Wiederverwendbarer Java Code?

WsDelegate

WS

Page 8: WJAX 2012: Advanced Activiti

Beispiel mit Apache CXF

Page 9: WJAX 2012: Advanced Activiti

Good idea?

Page 10: WJAX 2012: Advanced Activiti

ESB/Integrationsframework als Lösungsansatz

Service

WS JMS REST

Page 11: WJAX 2012: Advanced Activiti

Der Demo-Prozess

Page 12: WJAX 2012: Advanced Activiti

Demo

Konto- eröffnung

Was gibt’s zu sehen? BPMN 2.0, camunda fox, Mule / Camel Unit Testing

Page 13: WJAX 2012: Advanced Activiti

Message vs. process oriented

<serviceTask id="serviceTask1" ...

camel:send="log:test">

<extensionElements>

<camel:payload>

<![CDATA[

<customer><id>${execution.id}...

]]>

</camel:payload>

</extensionElements>

</serviceTask>

Page 14: WJAX 2012: Advanced Activiti

Framework vs. Server – auch auf Seite ESB

Application Server App Server Mule

camunda fox

Anwendung

camunda fox

Anwendung

mule

Variante 1: Mule Teil der Anwendung

Variante 3 Mule als Standalone Server

Application Server

camunda fox

Anwendung

mule

Variante 2 Mule Dienst des Application

Server

Page 15: WJAX 2012: Advanced Activiti

Demo

Error Handling

& TX

Was gibt’s zu sehen? Asynchronous Continuation BPMN Error Event …

Page 16: WJAX 2012: Advanced Activiti

Jobs and Asynchronous Continuations

= Transaction Boundaries

<serviceTask id="service1" name="Generate Invoice"

activiti:class="my.custom.Delegate"

activiti:async="true" />

taskService.complete(id)

1

2

1st TX 3rd TX 2nd TX

Activiti Job Executor Thread

3

Application / Client Thread

activiti:async=‘‘true“

Page 17: WJAX 2012: Advanced Activiti

Defa

ults

The JobExecutor

Job Acquisition

Thread

DB Job Runnable Thread

Job Runnable Thread

Job Runnable Thread

Job Runnable Thread

Job Runnable Thread

Job Execution Thread

maxJobsPerAcquisition = 3 waitTimeInMillis = 5 * 1000 lockTimeInMillis = 5 * 60 * 1000 queueSize = 5

corePoolSize = 3 maxPoolSize = 10

retrieve jobs

assign jobs

Executor Service

distribute

job queue

Page 18: WJAX 2012: Advanced Activiti

Spreading Process Execution accross multiple Nodes

DB

Activiti Engine

Job Executor

Activiti Engine

Job Executor

Clustering and Job distribution over the Cluster is supported

Page 19: WJAX 2012: Advanced Activiti

Transaktionen & Kompensation in BPMN 2.0

Page 20: WJAX 2012: Advanced Activiti

Process Engine Deployment

Page 21: WJAX 2012: Advanced Activiti

Es gibt noch viel mehr… • UI Mediator

• 4 Augen Prinzip

• Eskalation

• …

siehe Tutorials im

camunda fox user guide

Page 22: WJAX 2012: Advanced Activiti

Best of breed

Java EE 6 Persistenz (JPA), Transaktionen (JTA, EJB3), Clustering, Connectivity (JAX-WS, JAX-RS, JAX-B), UI (JSF), …

camunda fox Prozessautomatisierung, Monitoring, Operations, …

BPMN 2.0 Prozessmodellierung, fachliche Abstimmung, Roundtrip, …

You name it! Beliebige Komponenten aus dem (Java) Kosmos.

Page 23: WJAX 2012: Advanced Activiti

Download

Apache License

fox-engine

fox-platform community

fox-platform enterprise

fox-cycle

fox-modeler

fox-designer fox-cockpit

Getting Started

Anfangen!

www.camunda.com/fox/

https://github.com/camunda/

Page 24: WJAX 2012: Advanced Activiti

Projekt-unterstützung & Ressourcen, Partner

Stabilisierte Enterprise Edition Subscription & 24x7 Support

Und wir helfen auch gerne…

Proof Of Concept & Kompakt Workshops

Beispiel: 5 Tage

Training & Coaching

fox, Activiti, BPMN 2.0, …

Page 25: WJAX 2012: Advanced Activiti

Vielen Dank!

Page 26: WJAX 2012: Advanced Activiti

Vielen Dank! camunda services GmbH Zossener Str. 55-58 10961 Berlin

Telefon: +49 30 664 0409-00 Telefax: +49 30 664 0409-29

Email: [email protected]

www.bpm-guide.de Der Praxis-Blog zu BPM:

@camunda.com

Geschäftsführer

Bernd Rücker

bernd.ruecker

Advanced Activiti

München, 08.11.2012


Recommended