Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

76
Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System

Transcript of Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Page 1: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Informationssystem och databasteknik, 2I-1033

ProcesserProcessmodeller System

Page 2: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Definition of Business Process

A set of activities that takes one or more types of inputs and turns them into an output of greater value to the customer.

[Hammer]

input

input

output

Page 3: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Definition of Business Process

A specific ordering of work activities across time and place, with a beginning, an end, and clearly-defined inputs and outputs; a structure for action.

[Davenport]

outputinput

input

Page 4: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Why focusing on Business Processes?

• discover and adopt to changed customer demands

• automate the activities in business processes

• re-engineering the business processes to make them more effective/efficient

• to specify the requirements on IS

Page 5: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Order register

Add to order

Check order lineStop orderCredit check

Ship

* for each order line

OKi lager

notOK

Credit manager Order manager

A Workflow/Business Process model

Page 6: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Order register

Add to order

Check order lineStop orderCredit check

Ship

* for each order line

OKi lager

notOK

Credit manager Order manager

A Workflow/Business Process model

Task

Resource

Selection(OR split)

Parallelism(AND split)

Page 7: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Basic Workflow Concepts

• Task - a logical unit of work that is carried out as a single whole

• Resource - a person or a machine that can perform specific tasks

• Activity - the performance of a task by a resource

• Case - a sequence of activities performed to achieve some goal, an

order, an insurance claim, a car assembly (“ärende”)

• Work item - the combination of a case and a task that is just to be

carried out

• Process - describes how a particular category of cases shall be managed

• Control flow construct - sequence, selection, iteration, parallelisation

Page 8: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

More Concepts

A time point is an instant in time, not further decomposible

An event is an noteworthy occurence

A state shows the condition of a process and can be represented in several way, e.g. as a set of attribute values

Page 9: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Problem: Different meaning of basic terms or not well-defined semantics

Time points Time points

Even

t

Even

tActivityActivity

State State State StateState State

Two examples (there are more):

Page 10: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

What are Petri nets?

Petri nets are a method (process modelling language/technique) for describing and analysing processes Petri nets are an abstract, formal method, which means that two totally different processes can have the same structure but different meaning.

Page 11: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Why Petri nets?

Petri nets can be described graphically. Despite that, they also have a strong formal basis. Thanks to this formal basis, it is often possible to verify the correctness of the processes. Petri nets can be used to model computer hardware, software, workflow/business processes and information flow.

Page 12: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Why Petri nets?

Petri nets have available analysis techniques and tools to verify the correctness of the processes

For example, Petri nets can be used to verify software. A program can be converted into a Petri net. The Petri net can then be analysed to find out design errors.

Petri nets can give process modelling languges (like UML activity diagrams) a formal semantics

Page 13: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

tokens transition place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

Page 14: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places.

When a transition is enabled it can fire

Page 15: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places

When a transition is enabled it can fire

Page 16: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places

When a transition is enabled it can fire

Page 17: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

tokens transition place

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

When a transition is enabled it can fire

Page 18: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places

When a transition is enabled it can fire

Page 19: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places

When a transition is enabled it can fire

Page 20: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Application Process

applicationsunder

consideration

ready1

checkvalidity

accept

reject

When a transition fires it removes one token from each input place andadds one token to each output place

preparereject letter

prepareaccept letter

sendreject

sendaccept

ready2

A transition is enabled (“loaded) when there is a token in each of its input places

When a transition is enabled it can fire

Page 21: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Enabled Transition

A transition isenabled (“loaded”) whenthere is a tokenin each of itsinput places

Not enabled Enabled

Page 22: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

When a transition fires...

When a transition occurs, the transition “fires”, and the transition removes (“consumes”) one token from each input place andadds (“produces”) one token to each output place

Enabled

Input places

Output place

Page 23: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

When a transition fires …

When a transition “fires”, the Petri net change state, i.e. a new distribution of tokens.

Fired

Page 24: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

What can Petri nets concepts represent?

Place - usually represents a condition, a substate, a geographical location

Transition - usually represents an event, an activity, a transformation

Tokens - usually represent (physical or information) objects, e.g. an insurance claim, an order, a resource (machine, a wheel), a case (“ett ärende”)

Page 25: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

What can Petri nets concepts represent?

wheel

engine

chassis

production order/case

car

Page 26: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Dutch Traffic Light

red

yellow

green

yr

rg

gy

Page 27: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Dutch Traffic Light

red

yellow

green

yr

rg

gy

Page 28: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Dutch Traffic Light

red

yellow

green

yr

rg

gy

Page 29: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Dutch Traffic Light

red

yellow

green

yr

rg

gy

Page 30: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 31: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 32: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 33: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 34: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 35: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 36: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

Page 37: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Using a place “free”

If we, for some reason, wish to limit the number of “cases”, which can be under consideration at the same time to n, we can modify the Petri net by using an additional place “free”, and put n tokens in it.

free

Page 38: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Control flow constructs(in a workflow)

AND SPLIT

OR SPLIT

AND JOIN

OR JOIN

Page 39: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

High-level Petri nets

Classic Petri nets

High-level Petri nets- the colour extension- the time extension

vs.

Page 40: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

In a classical Petri net, tokens have no structure.In a coloured Petri net, each token isassociated with a data structure.

Page 41: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

Page 42: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

In a coloured Petri net, the valuesof a token’s data structure can be usedin preconditions that determine whichtransition that will fire.

Page 43: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

Page 44: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

Page 45: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

Page 46: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Coloured Petri Nets

claims

underconsideration

ready1

checkvalidity

accept

rejectprepare

reject letter

prepareaccept letter

sendreject

sendaccept

ready2

[name: John Doe, amount: 5000]

[name: Mary Doe, amount: 400]

amount < 1000

amount > 1000

Page 47: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Petri Net with Time

Every token gets a timestamp,indicating the time from which thetoken is available.

A transition is enabled when eachtoken to be consumed has a timestampequal or prior to the current time.

Each transition can give a delay to a tokenproduced by the transition.

Tokens are consumed on FIFO (first-in, first-out basis). The token with the earliest timstamp is the first to be consumed

15 20

10

Page 48: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Petri Net with Time

15 20

10

Before current time = 20, the transition is not enabled and cannot fire.At current time = 20, it will fire. The timestamp of the produced tokenequals the current time + the transition delay (=10 in the example)

10

30

Page 49: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights with Time

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

30 30

55

25 25

0 0

0

0

0

Current time = 0

Page 50: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights with Time

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

30 30

55

25 25

0 0

0

Current time = 0 (after the transition)

25

Page 51: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights with Time

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

30 30

55

25 25

0 0

0

Current time = 25 (after the transition)

30

Page 52: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights with Time

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

30 30

55

25 25

0 0

0

Current time = 30 (after the transition)

60

30

Page 53: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Two Traffic Lights with Time

red1

yellow1

green1

yr1

rg1

gy1

red2

yellow2

green2

yr2

rg2

gy2

30 30

55

25 25

0 0

Current time = 30 (after two transitions)

60

55

Page 54: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Swimming School Exercise

A student registers at the swimming school. The student willtake one or more swimming lessons followed by an examination.Every lesson has a beginning and an end. A student must have his or her individual teacher during a lesson. There are five teachers. Each swimming lesson is followed by another swimming lesson or an individual examination.An examiner is present at the examination, from beginning to end. There are two examiners. When a student has completed an examination, three things might happen:1. The student passes and leaves the school2. The student fails, takes additional lessons, and tries again3. The student fails and gives up

a) Model this using a classical Petri netb) Use a coloured Petri net to express that it is required to take 10 lessons before taking the exam and that students drop out after three failed examsc) Add time to model that a lesson takes one hour and an exam 30 min.

Page 55: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Swimming School Exercise

register

begin lesson end lesson

Free teachers

more

ready

begin exam

end exam

passdrop out

Free examiners

Page 56: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Swimming School Exercise

register

begin lesson end lesson

Free teachers

more

ready

begin exam

end exam

passdrop out

Free examiners

noOfLessons < 10

noOfLessons = 1060

30

Page 57: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Basic Workflow Concepts

• Task - a logical unit of work that is carried out as a single whole

• Resource - a person or a machine that can perform specific tasks

• Activity - the performance of a task by a a resource

• Case - a sequence of activities performed to achieve some goal, an

order, an insurance claim, a car assembly

• Work item - the combination of a case and a task that is just to be

carried out

• Process - describes how a particular category of cases shall be managed

• Control flow construct - sequence, selection, iteration, parallelisation

Page 58: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Workflow Concepts in Petri Nets

• Task - transition

• Resource - token

• Activity - transition that fires

• Case - token

• Work item - enabled transition

• Process - Petri net

• Control flow construct - modelled by places and transitions

Page 59: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Swimming School Exercise

register

begin lesson end lesson

Free teachers

more

ready

begin exam

end exam

passdrop out

Free examiners

ResourceTask

Work itemCase

Page 60: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Triggers

When do transitions fire?Sometimes, someone or something has to fire them.

A work item can only be transformedinto an activity once it has beentriggered.

Kinds of triggers

A resource initiative

An external event

A time signal

Page 61: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Triggers

receive order ask for customerinfo

customeranswer

no answer

manage

cancel

Page 62: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Klassifikation av informationssystem

BeslutstypVilka typer av beslut som systemet stödjer Strategiska Taktiska Operationella

FunktionerVilken funktion i organisationen som systemet stöder Marknadsföring Tillverkning och

tjänster Ekonomi Personal

Page 63: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Typer av beslutsstödssystem

TransactionProcessingSystems (TPS)

ManagementInformationSystems (MIS)

IntelligentSupportSystems (ISS)

INFORMATIONS-BEHOV

Alla dessa system stödjerbesluts-fattande

Page 64: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

TPS - system som hanterar och lagrar transaktioner

Mata in data

Step 1

Validera data

Step 2

Bearbetadata

Step 3

Transaktion: ett utbyte mellan två parter• Uttag från bankkonto• Förfrågan om pris på en produkt• Beställning av en vara

Hur ett TPS hanterar en transaktion

Lagra data

Step 2

Note: TPS are also called OLTP (Online Transaction processing)

Page 65: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

MIS - system som bevakar den interna verksamheten

Sammanfattningsrapport - aggregerar data från många transaktioner och presenterar dem i ett koncist format Månatlig försäljning Årlig personalomsättning

Avvikelserapport - beskriver avvikelser mellan prognos och faktiskt utfall Budgetöverskridande Försäljningsminskning

Page 66: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

ISS - Intelligenta StödSystem

ISS - system som stödjer ledningen på högre nivåer att fatta beslut om ostrukturerade problem Decision Support Systems (DSS) Executive Information Systems (EIS) (DSS + MIS)

OLAP (Online analytical processing) (Business Intelligence systems (BI))

Page 67: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

ISS - Intelligenta StödSystem

- snabba svar på komplexa, ostrukturerade (ad hoc) frågor

- interaktivitet som gör att beslutsfattare kan utforska olika alternativ

- använder oftast extern och intern data- DSS använder analytiska

beslutsmodeller- grafisk presentation

Page 68: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

ISS: ger stöd för komplexa beslut

Samband mellan TPS, MISoch ISS

TPS: hanterar transaktioner

Omvärlds-bevakning

MIS: genererar rap-porter om företaget

Operationell

Taktisk

Strategisk

Page 69: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Organisatoriska funktioner

En funktion är en enhet inom en organisation som utför ett antal relaterade aktiviteter. Vanligen kräver dessa aktiviteter en viss kompetens eller specifik utrustning.

Funktioner på ettuniversitet

Vakt-Vakt-mästerimästeri

KursKursregistreringregistrering

UndervisningUndervisningSystemSystemadministrationadministration

Page 70: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

IS för marknadsföring

System som stödjer försäljning, marknadsföringskampanjer, marknadsanalys, m.m. CRM (Customer Relationship

Management) System för försäljningsanalys

Page 71: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

IS för tillverkning och tjänster

System som stöder, lagerhantering, produktionsplanering, kvalitetskontroll m.m. Logistiksystem Materialförsörjningssystem

Page 72: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

IS för ekonomi

System som tillhandahåller finansiell information som underlag för beslut Intern och extern redovisning Ordermottagning Fakturering

Page 73: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

IS för personaladministration

System som stöder planering, samordning, administration och ledning av personal (Human resource systems) Lönesystem Kompetensdatabas

Page 74: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Vakt-Vakt-mästerimästeri

KursKursregistreringregistrering

UndervisningUndervisningSystemSystemadministrationadministration

Processer korsar funktioner

Kurs

Page 75: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Funktioner och IS

FoUFoU MarknadMarknad ProduktionProduktion TjänsterTjänster EkonomiEkonomiPersonalPersonal

Funktioner

Informations-system

Varje informationssystem stödersin egen funktion

Page 76: Informationssystem och databasteknik, 2I-1033 Processer Processmodeller System.

Integrerade informationssystem

Order- Order- hanteringhantering

Kund-Kund-tjänstertjänster

Ekonomi-Ekonomi-rapporteringrapportering

FoUFoU MarknadMarknad ProduktionProduktion Tjänster Tjänster PersonalPersonal

Produkt- Produkt- utvecklingutveckling

Ekonomi