inf5120 ”modellbasert systemutvikling” ”modelbased system ... · n sae-3 (lecture 10, april 4...

Post on 02-Aug-2020

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Telecom and Informatics 1

INF5120”Modellbasert Systemutvikling”

”Modelbased System development”

Lecture 10: 04.04.2016Arne-Jørgen Berre

arneb@ifi.uio.no or Arne.J.Berre@sintef.no

Telecom and Informatics

Course parts (16 lectures)

2

n January – February (1-7) (BAE/WebRatio): n MDE-1: Introduction to INF5120n MDE-2: Modeling structure and behaviour (UML and UML 2.0 and metamodeling) ( B. Hjelle)n BAE-1: Business Architecture – Business Model Canvas - Strategyzer tool. n SAE-1: WebRatio for Mobile App development (Get an App up and running!)n BAE-2: Essence, Scrum, User stories and Use cases 2.0, Backlog, with Someone n BAE-3: BPMN process, VDML and UML Activ.Diagrams, … (MD/EA, Smaply and Balsamiq)n BAE-4: Service Design, AT ONE,Touchpoints, UI, UX, Smaply and Balsamiq (Ragnhild)n Oblig 1: BA Spec, WebRatio App1 (individual) (end of February, March 7th), Agile Scrumn March (8,9) (MDE/IFML/Client-Side): n MDE-3: Model driven engineering – Metamodels, DSL, UML Profiles, EMF, Sirius Editorsn SAE-2: IFML – Interaction Flow Modeling Language, WebRatio advancedn April (10, 11,12,13) (BPMN, SAE/UML/Server-side): n SAE-3 (Lecture 10, April 4th): BPMN and WebRatio BPM platform/Magicdraw BPMNn Oblig 2: Sirius DSL Editor for IFML +/- (indivual), WebRatio/IFML App2 UI (simple) (April 11th )n SAE-4: UML Service Modeling, ServiceML,SoaML, REST, UML 2.0 Composition, MagicDrawn MDE-4: Guest lecture: DSL and ThingML, Franck Fleurey) and Web Meet with project from

Florida Atlantic University, FAU, Boca Raton, FL, USA (at 1700)n SAE-5: MDE transformations, Non Functional requirements – OCL and PLanguagen Oblig 3: SA Spec (More models), WebRatio/IFML App 3 Server (May 2nd)n May (14,15,16): (Bringing it together)n SAE-6: Final WebRatio App demo and discussion day (May 2nd) n MDE-5: Enterprise Architecture, TOGAF, UPDM, SysML – DSLs etc. – Big picturen MDE-6: Conclusions/Summary of the coursen Exam (4 hours), (June 6th)

Telecom and Informatics

Relevant Essence-related practicedescriptions

3

• BusinessModelCanvasdesign- Strategyzer• ValueProposition Design- Strategyzer• ATONEServiceDesignWorkshops– Symphonical SomeOne/UpWave• ServiceJourneydesigns– Smaply,• Vocabulary,Terminology,Information,Ontology designs- MagicDraw• UserStoryandUse Cases• Business ProcessModeling with BPMN2.0• UIMockup/Concept designs– Balsamiq• Scrum development practices• IFMLbased developmnet –WebRatio• Graphical Editordesign– Sirius• …..

Seealso http://inf5120.modelbased.net/

Telecom and Informatics

Customer Journey & adapted BPMN

4

Telecom and Informatics

OMG Modeling languages and Zachman Framework

5

Data(What)

Function(How)

Network(Where)

People(Who)

Time(When)

Motivation(Why)

Scope(Contexts)

Business(Concepts)

System(Logic)

Technology(Physics)

Component(Assemblies)

List of thingsimportant

to business

List of processesthat the business

performs

List of locationswhich the business

operates

List of organizationsimportant to the

business

List of events/cyclesimportant to the

business

List of businessgoals/strategies

Semantic ModelBusinessProcessModel

BusinessLogisticsSystem

WorkflowModel

MasterSchedule

BusinessPlan

Logical Data Model ApplicationArchitecture

DistributedSystem

Architecture

HumanInterface

Architecture

ProcessStructure

Business RuleModel

Physical Data Model System Design TechnologyArchitecture

PresentationArchitecture

ControlStructure

RuleDesign

Data Definition Program NetworkArchitecture

SecurityArchitecture

TimingDefinition

RuleDefinition

Operation(Instances)

Data Function Network Organization Schedule Strategy

BMM

SBVR

VDM OSMSBVR

DTFV

BPMN

UMLIMM(CWM)

CMPM

SoaML

ODM

UML

SoaML

BPMN

IFML

User interactionService ProcessData

Behaviour

Telecom and Informatics

BPMN(Business Process

Model and Notation)See also:

INF5181 - Process improvement and agile methods in systems developmenthttp://www.uio.no/studier/emner/matnat/ifi/INF5181/index-eng.html

andhttp://en.wikipedia.org/wiki/Business_Process_Model_and_Notation#Elements

Telecom and Informatics 7

Telecom and Informatics

The need of process modeling

n Process improvement is created with better understanding, communication, and organization

n Modeling is an important aspect of thesen Modeling translates verbal or tacit understanding into

simple metaphors that assist these objectivesn A metaphor is a way of reducing the dimensions of the

description of a process to a more understandable and visible basis

n Metaphors bridge complex concepts and build an understanding of the relationships between them

Telecom and Informatics

Three manners of thinking -Processn Can be defined as an organization of activities that

happen in a series, relevant to a business’s goals and objectives

n At a fundamental level, a process diagram represents a single instance of a process

n For example, a purchase order process reflects an instance of a single purchase order, not an organization processing their work load of purchase orders

Telecom and Informatics

Three manners of thinking -Eventn From another perspective, a process is actually a

connected sequence of events that respond to states, causes, and conditions

n In an event-based view, the process is a linkage of the transitions from one processing state to another

Telecom and Informatics

Three manners of thinking -Decisionn From yet another viewpoint, all activities and responses to

events should be the result of a conscious decision by the organization.

n The decisions are an assemblage of business rules

n A process model is not merely a scenario;n It is a scenario that exists within the context of the

process, events, and decisionsn All these different perspectives are appropriately

incorporated in a robust process model

Telecom and Informatics

Business Process

n A business process is a sequence of activities that carry out a business goaln “A business process is an organized, coordinated flow of activities,

conducted by participants, acting on and deciding with data, information, and knowledge, to achieve a business goal”

Telecom and Informatics

Business rules

n A business rule is a mediator of information in computer systems for decision-making process participants, such as managers, employees, and salespeople

n More accurately, from the viewpoint of the business process:n “a business rule is an atomic logic step that uses data and

knowledge to evaluate part of a proposition about a process decision”

n The business rule “meets” the process through the decision – when you change the business rule, you change decision outcome

n Think of a set of business rules as conditions that match data and create conclusions

Telecom and Informatics

Business Event

n In a modern process modeling approach, opportunities, conditions, and factors that events must respond to are handled or managed with business eventsn “A business even is an event that is meaningful for conducting

commercial, industrial, and governmental, or trade activities”

n In BPMN, we have start, intermediary, non-interrupting, and end events

n Correspond directly to a process instance

Telecom and Informatics

What is BPMN ?

Telecom and Informatics

BPMN example

Telecom and Informatics

BPMN 2.0 and SoaML tools today

n BPMN 2.0n Signavio has 2.0 Conversation and Choreography diagrams – a

SaaS solutionn Most BPMN 1.2 are doing stepwise migration, making existing

parts 2.0 compliant

n SoaML (in most UML tools)n Magic Draw (Cameo), Enterprise Architect, IBM RSA/RSM,

Modelio, …

n We will use MagicDraw - Cameo Enterprise Architecture - version in the course in spring 2015

Telecom and Informatics 18

Telecom and Informatics 19

Telecom and Informatics 20

http://www.nomagic.com/products/cameo-business-modeler.html

Telecom and Informatics 21

Telecom and Informatics 22

https://www.webratio.com/learn/learningobject/vacation-request-bpm-tutorial-v-80

Telecom and Informatics 23

Telecom and Informatics 24

Telecom and Informatics 25

Telecom and Informatics

BPMN History

26

n BPMN 1.0 (BPMI) – Mai 2004n BPMN1.x

n BPMN 1.1 (OMG) – Januar 2008n BPMN 1.2 (OMG) – Januar 2009

n BPMN 2.0 final Juni 2010n http://www.omg.org/spec/BPMN/2.0/

Telecom and Informatics

History for BPMN

Telecom and Informatics

BPMI.org Hourglass

Business Environment

Technology Implementation

BP

BPMN

BPEL

Focus � Scope �

Strategy Consultants

Process Designers

System Architects

Software Engineers

Business Analysts

Audiences: Purposes:

Execution

Modeling

Telecom and Informatics

BPMN requirements

Telecom and Informatics

BPMN Building blocks of the foundationn Some of the concepts are part of the definitions of

business processn “An event-activated flow of coordinated activities, conducted by

participants, and acting on and deciding with data, information, and knowledge that achieve a goal”

n Participant, Activity, Flow, Process event, Data

Telecom and Informatics

Participant

n A participant is an actor or a person that interacts in a process

n The actor includes any human, digital, or virtual resource that involved in a business process

Telecom and Informatics

Participant examples

“People” participants:n Inventory receipt clerk

inspecting the ordern Employee filling out a

requestn Patient in hospitaln Manager approving a

requisitionn Technician restoring a

disk drive

“System” Participants:n SAP, PeopleSoftn DB servern Rules enginesn A Web servicen A custom-build UIn A telephony queuing

switch

Telecom and Informatics

Activity

n An “activity” is work the participant performs with business process

n Is the basic units of process work, can ben Atomic (lowest level, indivisible unit of work)n Non-atomic (involving many steps)

n Process and subprocesses are compound activitiesn In BPMN, the types of process activities include:

n Tasks – is the atomic activityn Subprocesses – is compound activity, might contain other

activities

Telecom and Informatics

Activity examples

n An activity can be manual, as a human participant completes the activity, or

n It might be automated by a system participantn Examples:

n Inspecting material deliveryn Restoring a servern Completing contract requisitionn Reviewing and approving a requisitionn Reviewing loan application

Telecom and Informatics

Flow

n Is the order (and data) in which the activities or process steps are performed

n Multiple flows might occur within multiple participants roles

n Two types of flows in BPMN diagramn Sequence – defines the order in which activities are

performed for any given process participantsn Sequence flow never occurs between participants in different

poolsn Message – defines the flow of information and message

between participants within a processn Messages never occur within the same pool

Telecom and Informatics

Flow: transition

n Describes the hand-off between activitiesn Transition means that one activity has stopped and

another has startedn Transition never occurs between multiple participantsn e.g,a work area with people and workstations for each

person’s activities (tasks)n As each task is completed, the person transitions to the next task

at another workstationn Any communication is an interaction, not a transition

Telecom and Informatics

Flow: interaction

n Is the communication between participantsn Interactions occur between two or more participants in the

form of messagen Interactions never occur from one participant back to itselfn Note: a flow from one participant back to itself is an activity

transition, not an interaction

Telecom and Informatics

Process Event

n An event is something that happensn A process event defines a point where the process is

either started, stopped, halted, or continuedn Events define occurring activities “of interest”n Participant actions, choices, or activities define or create

eventsn Examples:

n Contract order submittedn DB unavailablen Requisition rejected

Telecom and Informatics

Data

n Data shapes in BPMN are artifacts, meaning, or an effect of process events occurring

n Data is never a cause of process activity occurring. Events trigger activity, resulting in data

n Data mostly originates from events, for example:n An airplane is cleared for a final approach. This event is added to

the flight log (data)n The log data is a chorological series of event snapshots

Telecom and Informatics

Core Set of Diagram Elements

nThe core set of modeling elements enable the easy

development simple Business Process Diagrams that will

look familiar to most Business Analysts (a flowchart diagram)

Telecom and Informatics

Complete Set of Diagram Elements, Events

nAn Event is something that “happens” during the course of

a business process. These Events affect the flow of the Process and usually have a trigger or a result. They can

start, interrupt, or end the flow.

Telecom and Informatics

Complete Set of Diagram Elements, Activities, Cont.

nA Sub-Process can be in an expanded form that shows the process details of the a lower-

level set of activities.

Telecom and Informatics

Complete Set of Diagram Elements, Gateways

nGateways are modeling elements that are used to

control how Sequence Flows interact as they converge and

diverge within a Process. If the flow does not need to be

controlled, then a Gateway is not needed.

Telecom and Informatics

BPMN Diagram elements

Telecom and Informatics

Diagram elements (2)

Telecom and Informatics

Activities

Telecom and Informatics

Task

Telecom and Informatics

Sub-processes

Telecom and Informatics

Events

Telecom and Informatics

Start Events

Telecom and Informatics

Intermediate Events

Telecom and Informatics

Intermediate events (normal flow)

Telecom and Informatics

Intermediate events (linked to Boundary)

Telecom and Informatics

End events

Telecom and Informatics

Gateways

Telecom and Informatics

Exclusive Gateways

Telecom and Informatics

Exclusive Gateways, based on data

Telecom and Informatics

Exclusive Gateways, based on events

Telecom and Informatics

Inclusive Gateways

Telecom and Informatics

Complex Gateways

Telecom and Informatics

Complex Gateways

Telecom and Informatics

Parallell Gateways

Telecom and Informatics

Conectors

Telecom and Informatics

Sequence flow

Telecom and Informatics

Conditions in sequence flow

Telecom and Informatics

Default sequence flow

Telecom and Informatics

Message flow

Telecom and Informatics

Associations

Telecom and Informatics

Swim lanes

Telecom and Informatics

Pool

Telecom and Informatics

Lanes

Telecom and Informatics

Artifacts

Telecom and Informatics

Text annotations

Telecom and Informatics

Data objects

Telecom and Informatics

Groups

Telecom and Informatics

Extended artifacts

Telecom and Informatics

Normal flow

Telecom and Informatics

Link events

Telecom and Informatics

Process leves

Telecom and Informatics

Data flow

Telecom and Informatics

Exceptions

Telecom and Informatics

Compenations and transacations

Telecom and Informatics

Loops

Telecom and Informatics

Timers

Telecom and Informatics

Ad hoc processes

Telecom and Informatics

EPC og BPMNEPCEPC

BPMN

Telecom and Informatics

Orchestration versus Choreography

Telecom and Informatics

Orchestration

Telecom and Informatics

Choreography

Telecom and Informatics

Example

Telecom and Informatics

Process information

Telecom and Informatics

Proposal

Telecom and Informatics

Sources

n The (beta) BPMN 2.0 specification -http://www.omg.org/spec/BPMN/2.0/

n Bruce Silver – http://www.bpmnstyle.com

n Rick Geneva – http://processmodeling.info

n Stephen White -https://apps.lotuslive.com/bpmblueworks/community/?p=902

n BPMN 0.9, 1.0, 1.1, 1.2, …..

Telecom and Informatics

BPMN Examples …

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Example – doctor’s office

n A text description of the choreography was presented as so:n 1) Patient send a "I want to see doctor" message to the Receptionist n 2) Receptionist send a "Are you available ?" message to a a list of

Doctors n 3) One doctor send a "I'm available" message to the Receptionist. n 4) Receptionist send a "I'll book you" message to the Doctor. n 5) Receptionist send a "Go see doctor" message to the Patient n 6) Patient send a "I feel sick" message to Doctor n 7) Doctor send a "Prepare this medicine" message to Receptionist n 8) Doctor send a "Pickup your medicine and you can leave" message

to Patient n 9) Patient send a "I need my medicine" message to Receptionist n 10) Receptionist send a "Here is your medicine" message to Patient

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

Telecom and Informatics

BPMN 2.0: Major changes from BPMN1.x

n Notational changesn New diagrams for Choreography and Conversationn New event-types (escalation, …)n Non-interrupting eventsn Event sub-processn Call Activity– replaces linked/reusable activity

n Technical changesn Formal metamodel – specified in UMLn Interchange formats for semantic model interchange (XMI, XSD)n Interchange formats for diagram interchange (XMI, XSD)n XSLT transformations between XMI and XSD formats

Telecom and Informatics

Process diagram

n Flowchart view to sequence activities within an organization

n Support the modeling of simple processes

n Enhanced by BPMN to handle more complex concepts, such as exception handling, transactions, and compensation.

Telecom and Informatics

Collaboration diagram

n Provides a view of the interactions (flow of messages) between two or more business partners (Participants).

n Collaborations can be combined with Processes to show how the interactions are related to the internal Process activities.

Telecom and Informatics

Collaboration diagram example

Telecom and Informatics

Conversation diagram

n Allows a modeler to group Collaboration interactions between two or more Participants, which together achieve a common goal, e.g. “negotiate delivery”

n The grouping can be based on business keys such as customer id or shipping id.

Telecom and Informatics

Conversation diagram example n Allows a modeler

to group Collaboration interactions between two or more Participants, which together achieve a common goal, e.g. “negotiate delivery”

n The grouping can be based on business keys such as customer id or shipping id.

Telecom and Informatics

Corresponding choreography example• Provides a flowchart view to

sequence interactions between Participants

• Choreographies define a “business contract” or protocol to which the Participants agree to

follow during real-time interactions.

Telecom and Informatics

Choreography diagram

n Provides a flowchart view to sequence interactions between Participants

n Choreographies define a “business contract” or protocol to which the Participants agree to follow during real-time interactions.

Telecom and Informatics

Activity types - visualised

Telecom and Informatics

Multi-instance activites - visualised

Parallel Serial

Telecom and Informatics

New Artifact ShapesData Artifact

Data Artifact Collection

Data Artifact Input

Data Artifact Output

Data Source Artifact

Telecom and Informatics

New Event Gatewaysn Current event-based gateway

n Event Based Exclusive Intermediate

n Event Based Exclusive Start Gateway

n Event Based Inclusive Startn Event Based Inclusive Intermediate

Telecom and Informatics

Non-interrupting Intermediate Eventsn Boundary intermediate

events in BPMN 1.0-1.2 are interrupting

n BPMN2.0 introduces new non-interrupting intermediate eventsn Boundary eventsn Catching

n Example of use

Telecom and Informatics

Non-interrupting Event Sub-process (expanded)

Telecom and Informatics

Non-interrupting Event Sub-process (collapsed)

Telecom and Informatics

Interrupting Event Sub-process

Telecom and Informatics

BPMN 2.0Event Gallery

top related