curs 4 adrian iftene [email protected]/scoala/2011/taip/courses/taip... · the objective...

61
Curs 4 25 Octombrie 2010 Adrian Iftene [email protected]

Upload: trinhhanh

Post on 17-Mar-2018

224 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Curs 4 – 25 Octombrie 2010

Adrian [email protected]

Page 2: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Portalul este funcțional! Tot ce ați lucrat până acum să puneți pe portal:◦ State-of-the-art – ca pdf

◦ Ingineria cerințelor – ca pdf

◦ Diagrame UML – ca imagini (jpg)

SVN-ul este funcțional! Tot ce veți lucra de acuma să puneți acolo și să-mi dați drepturi de citire!

Termen limită: 27 Octombrie

2

Page 3: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Planificați-vă a doua întâlnire cu persoana care vă coordonează la practica de cercetare!

Termen limită săptămâna a 8-a!

3

Page 4: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Recapitulation course 3◦ Modeling (EMF, IBM Rational Rose Modeler)

Business Process Modeling Notation◦ Introduction

◦ Elements

◦ Examples

◦ Frameworks

Aspect Oriented Programming ◦ Introduction

◦ Terminology

◦ Frameworks

AspectJ (for Eclipse and Netbeans)

4

Page 5: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Modeling ◦ The Value of Modeling

◦ EMF

◦ IBM Rational Rose Modeler

5

Page 6: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

6

Who?

What is modeling?

Why model?

Page 7: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

7

EMF Ecore

Page 8: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

8

Page 9: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

BPMN - graphical representation for specifying business processes in a business process modeling

BPMN was developed by Business Process Management Initiative (BPMI), and is currently maintained by the OMG (http://www.bpmn.org/)

The objective of BPMN is to support business process management for both technical users and business users

The current version of BPMN is 1.2, with a major revision process for BPMN 2.0 in progress (Beta 2)

9

Page 10: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

BPMN is based on a flowcharting technique very similar to activity diagrams from UML

The primary goal of BPMN is to provide a standard notation that is readily understandable by all business stakeholders:◦ business analysts - who create and refine the processes

◦ technical developers - responsible for implementing

◦ business managers - who monitor and manage the processes

Business Process Execution Language = execution languages

10

Page 11: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Flow Objects ◦ Events, Activities,

Gateways

Connecting Objects ◦ Sequence Flow, Message

Flow, Association

Swimlanes◦ Pool, Lane

Artifacts (Artefacts) ◦ Data Object, Group,

Annotation

11

Page 12: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and
Page 13: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Event - something that happens◦ Catching - they might catch an incoming message to Start process

◦ Throwing - they might throw a message at the End of the process

13

Page 14: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Activity - describes the kind of work which must be done◦ Task - a single unit of work

◦ Sub-process - Used to hide or reveal additional levels of business process detail

◦ Transaction - A form of sub-process in which all contained activities must be treated as a whole

14

Page 15: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

All contained activities must all be completed to meet an objective, and if any one of them fails they must all be compensated (undone)

15

Page 16: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

A Gateway is represented with a diamond shape and will determine forking and merging of paths depending on the conditions expressed

16

Page 17: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

A Sequence Flow shows in which order the activities will be performed

A Message Flow tells us what messages flow across organizational boundaries

An Association is used to associate an Artifact or text to a Flow Object

17

Page 18: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Swimlanes are a visual mechanism of organizing and categorizing activities◦ Pool - Represents major participants in a process (contains one

or more lanes (like a real swimming pool)) A pool can be open(showing internal detail) or collapsed (hiding internal detail)

◦ Lane - Used to organize and categories activities within a pool according to function or role. A lane contains the Flow Objects, Connecting Objects and Artifacts.

18

Page 19: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

19

Page 20: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Artifacts allow developers to bring some more information into the model/diagram◦ Data Objects show the reader which data is

required or produced in an activity

◦ A Group is used to group different activities but does not affect the flow in the diagram

◦ An Annotation is used to give the reader of the model/diagram an understandable impression

20

Page 21: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

21

Page 22: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

22

Page 23: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

23

Page 24: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

24

Private (internal) business processes – are internal to a specific organization and are called workflow or BPM processes

Abstract (public) processes - represent the interactions between a private business process and another process or participant

Collaboration (global) processes - A collaboration process depicts the interactions between two or more business entities.

Page 25: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

25

Page 26: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

26

Page 27: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

27

Page 28: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Visio BPMN modeler◦ Microsoft Visio Professional 2010 (e-academy)

Intalio◦ Java, Eclipse

Jadex◦ Java, Eclipse

JBPM◦ Java, Apache Ant

28

Page 29: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

29

Page 30: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

30

Page 31: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

31

Page 32: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

32

Page 33: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

33

Page 34: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

34

Page 35: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

35

Page 36: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

36

AOP is a programming paradigm which isolates secondary or supporting functions from the main program’s business logic

AOP increases modularity by allowing the separation of cross-cutting concerns

AOP includes programming techniques and tools that support the modularization of concerns at the level of the source code

Page 37: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

37

Aspects emerged out of object-oriented programming and computational reflection

Aspects relate closely to subjects, mixings, delegation

Since at least the 1970s, developers have been using forms of interception and dispatch-patching

Designers have considered alternative ways to achieve separation of code, such as C#'s partial types, but such approaches lack a quantification mechanism that allows reaching several join points of the code with one declarative statement

Page 38: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

38

AOP as such has a number of antecedents: the Visitor Design Pattern, CLOS MOP (Common Lisp Object System - MetaobjectProtocol)

AspectJ developed by Gregor Kiczales and colleagues at Xerox PARC (2001)

Page 39: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

Hyper/J and Concern Manipulation Environment offered by IBM's research team in 2001 (which have not seen wide usage)

EmacsLisp changelog added AOP related code in version 19.28

39

Page 40: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

40

Cross-cutting concerns - aspects of a program which affect other concerns

Advice - additional code

Pointcut - point where additional code is executed

Aspect - the combination of the pointcut and the advice

Page 41: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

41

Even though most classes in an OO model will perform a single, specific function, they often share common, secondary requirements with other classes

For example, we may want to add logging to classes within the data-access layer and also to classes in the UI layer whenever a thread enters or exits a method. Even though each class has a very different primary functionality, the code needed to perform the secondary functionality is often identical.

Page 42: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

42

This is the additional code that you want to apply to your existing model

In our previous example, this is the logging code that we want to apply whenever the thread enters or exits a method.

Page 43: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

43

This is the term given to the point of execution in the application at which cross-cutting concern needs to be applied

In our previous example, a pointcut is reached when the thread enters a method, and another pointcut is reached when the thread exits the method

Page 44: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

44

The combination of the pointcut and the advice

In the example above, we add a logging aspect to our application by defining a pointcut and giving the correct advice.

Page 45: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

45

An open source application framework for Java

The first version (Rod Johnson) was released with the publication of book Expert One-on-One J2EE Design and Development in October 2002

The framework was first released under the Apache 2.0 license in June 2003. The current version is 3.0.4

The core features can be used by any Java application, but there are extensions for building web applications on top of the Java EE platform

It is very popular in the Java community as an alternative to, replacement for, or even addition to the Enterprise JavaBean (EJB) model

Page 46: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

46

Inversion of Control container

Aspect-oriented programming

Data access

Transaction management

Model-view-controller

Remote Access framework

Convention-over-configuration

Batch processing

Authentication and authorization

Remote Management

Messaging

Testing

Page 47: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

47

Join point: a point during the execution of a program

Introduction: declaring additional methods or fields on behalf of a type

Target object: object

being advised by one

or more aspects

AOP proxy: an object

created by the AOP

framework in order to

implement the aspect

contracts

Page 48: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

48

A point during the execution of a program, such as the execution of a method or the handling of an exception

A set of join points is described as a pointcut

In Spring AOP, a join point always represents a method execution

In my words: a locus of points where execution will happen

Page 49: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

49

Declaring additional methods or fields on behalf of a type

Spring AOP allows you to introduce new interfaces (and a corresponding implementation) to any advised object

For example, you could use an introduction to make a bean implement an IsModified interface, to simplify caching

An introduction is known as an inter-type declaration in the AspectJ community

Page 50: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

50

Object being advised by one or more aspects

Also referred to as the advised object

Since Spring AOP is implemented using runtime proxies, this object will always be a proxied object

Page 51: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

51

An object created by the AOP framework in order to implement the aspect contracts (advise method executions and so on)

For example, in the Spring Framework, an AOP proxy will be a JDK dynamic proxy or a CGLIB proxy

Page 52: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

52

Utility for aspect-oriented languages designed to take instructions specified by aspects and generate the final implementation code

Takes information from raw class and aspects and creates new class => woven class

The weaver integrates aspects into the locations specified by the software as a pre-compilation step

Page 53: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

53

AspectJ - the most mature and fully featured framework

JBoss AOP - is a 100% Pure Java usuable in any programming environment

Aspectwerkz (AW) - one of the quickest and most fully featured AOP frameworks available

Nanning - a simple yet scalable aspect-oriented framework for Java (Nanning is also nice "little" town in Guanxi province in southern China)

Page 54: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

54

Eclipse IDE + AJDT (AspectJ Development Tools)

Create “New” + “AspectJ Project”

Page 55: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

55

Page 56: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

56

aspect

pointcut

advice

Page 58: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

58

Page 59: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

59

Use BPMN to create a business model, and use it in a new project component related to your project theme

Use AOP or MOP in your implementation

Page 60: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

60

BPMN: http://www.bpmn.org/

BPMS Process Mapping BPM: http://interfacing.com/

Visio BPMN modeler Tutorial: http://www.interfacing.com/uploads/File/Tutorial.pdf

Business process case studies: http://interfacing.com/Literature/Business-process-case-studies/

Intalio: http://www.intalio.com/downloads

Jadex packages: http://jadex-processes.informatik.uni-hamburg.de/xwiki/bin/view/Download/Available+Packages

Jadex Installation: http://jadex-processes.informatik.uni-hamburg.de/xwiki/bin/view/BPMN+Tutorial/02+Installation

jBPM: http://jboss.org/jbpm

Page 61: Curs 4 Adrian Iftene adiftene@info.uaicadiftene/Scoala/2011/TAIP/Courses/TAIP... · The objective of BPMN is to support business process management for both technical users and

61

AOP: http://onjava.com/pub/a/onjava/2004/01/14/aop.html, http://en.wikipedia.org/wiki/Aspect-oriented_programming

AspectJ: http://www.eclipse.org/aspectj/

AspectJ Downloads: http://www.eclipse.org/aspectj/downloads.php

Aspectwerkz (AW): http://aspectwerkz.codehaus.org/

Nanning: http://nanning.codehaus.org/

jBoss AOP: http://www.jboss.org/jbossaop

Spring AOP tutorial: http://technologiquepanorama.wordpress.com/2009/05/18/spring-aop-tutorial-i/

AJDT: AspectJ Development Tools: http://www.eclipse.org/ajdt/

AOP in Netbeans: http://www.jroller.com/ramlog/entry/using_the_aspectj_plug_in1http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=22964

Framework for AOP in C#: http://rail.dei.uc.pt/