SlideShare a Scribd company logo
Extending temporal
business constraints
with uncertainty
Fabrizio M. Maggi
Marco Montali
Rafael Peñaloza CAiSE Forum 2020
1
Constraints predicating on the execution of activities over
time.

Notable examples: DCR Graphs [Slaats et al, BPM13] and
Declare [Pesic et al, EDOC17].

• Declarative speci
fi
cation and enactment of business
processes.

• Formalization of business rules and policies in monitoring
and conformance checking [___,BPM14].

Declare uses LTL over
fi
nite traces and its automata-theoretic
characterization to provide support in the whole lifecycle.
Temporal business constraints
2
A front-end for linear temporal logic over
fi
nite traces
The Declare framework
3
accept reject
1..* 1..*
Crisp semantics of constraints: an execution trace
conforms to the model if it satis
fi
es every constraint in
the model.
A front-end for linear temporal logic over
fi
nite traces
The Declare framework
4
accept reject
1..* 1..*
Crisp semantics of constraints: an execution trace
conforms to the model if it satis
fi
es every constraint in
the model.
Inconsistent model:


no conforming trace
• Best practices: constraints that must hold in the majority, but
not necessarily all, cases.

90% of the orders are shipped via truck.
• Outlier behaviors: constraints that only apply to very few, but
still conforming, cases.

Only 1% of the orders are canceled after being paid.
• Constraints involving external parties: contain uncontrollable
activities for which only partial guarantees can be given.

In 8 cases out of 10, the customer accepts the order and also
pays for it.
Some examples
Uncertainty is pervasive
5
Uncertainty as conformance ratio
6
multiset of traces

for n cases
constraint “C”
Uncertainty as conformance ratio
7
multiset of traces

for n cases
constraint “C”
conforms to C?
Uncertainty as conformance ratio
8
multiset of traces

for n cases
conforms to C?
constraint “C”
…
Uncertainty as conformance ratio
9
multiset of traces

for n cases
k 

conforming

traces
constraint “C”
k
n
Uncertainty as conformance ratio
10
multiset of traces

for n cases
k 

conforming

traces
constraint “C”
holds with
probability k/n
k
n
Uncertainty as conformance ratio
11
multiset of traces

for n cases
k 

conforming

traces
n-k 

nonconforming

traces
constraint “C”
holds with
probability k/n
k
n
constraint “C”
is violated with
probability 1-k/n
Uncertainty as conformance ratio
12
multiset of traces

for n cases
k 

conforming

traces
n-k 

nonconforming

traces
constraint “C”
holds with
probability k/n
k
n
constraint “not C”
holds with
probability 1-k/n
Extending Declare with probabilities
ProbDeclare
13
accept reject
1..* {0.8} 1..* {0.1}
Constraints have an associated probability.

• Crisp constraints: those with probability 1 (must hold in every
trace).

• Truly probabilistic constraints: may hold or not.
The subtlety of probabilistic constraints
ProbDeclare
14
accept reject
The subtlety of probabilistic constraints
ProbDeclare
15
accept reject
in 100% traces:


accept and reject do not
coexist
The subtlety of probabilistic constraints
ProbDeclare
16
accept reject
1..* {0.8}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
The subtlety of probabilistic constraints
ProbDeclare
17
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs
The subtlety of probabilistic constraints
ProbDeclare
18
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs
Can they overlap?


No: it is not possible to satisfy
all constraints at once!
The subtlety of probabilistic constraints
ProbDeclare
19
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs
Can they overlap?


No: it is not possible to satisfy
all constraints at once!
The subtlety of probabilistic constraints
ProbDeclare
20
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs
The subtlety of probabilistic constraints
ProbDeclare
21
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs
The subtlety of probabilistic constraints
ProbDeclare
22
accept reject
1..* {0.8} 1..* {0.1}
in 100% traces:


accept and reject do not
coexist
in 80% traces:


accept occurs
in 10% traces:


reject occurs


in 10% traces:


neither accept nor reject occur
⟹
The subtlety of probabilistic constraints
ProbDeclare
23
In how many traces is the order
accepted and then paid?


Not 70%… it is 50%!
accept
1..* {0.8}
0..1
pay
{0.7}
The subtlety of probabilistic constraints
ProbDeclare
24
accept
1..* {0.8}
0..1
pay
{0.7}
In how many traces is the order
accepted and then paid?


Not 70%… it is 50%!
Consider a ProbDeclare model with n constraints.

A constraint scenario picks which probabilistic constraints must hold,
and which are violated (i.e., their negated version must hold).

All in all: in principle, 2n scenarios, denoting di
ff
erent “process variants”.

Key point: 

• Reasoning over a single scenario reduces back to standard LTLf
reasoning.

• Can be done with well-known automata-theoretic techniques.
A probabilistic version of “process variant”
Constraint scenario
25
Crisp constraints must hold in each scenario, so we only consider
choices for truly probabilistic constraints.
Constraint scenarios
Example
26
accept
1..* {0.8}
0..1
pay
{0.7}
Crisp constraints must hold in each scenario, so we only consider
choices for truly probabilistic constraints.
Constraint scenarios
Example
27
scenario
consistent? probability
0..1 acc precedence(acc,pay) 1..* acc response(acc,pay)
accept
1..* {0.8}
0..1
pay
{0.7}
Crisp constraints must hold in each scenario, so we only consider
choices for truly probabilistic constraints.
Constraint scenarios
Example
28
accept
1..* {0.8}
0..1
pay
{0.7}
scenario
consistent? probability
0..1 acc precedence(acc,pay) 1..* acc response(acc,pay)
1 1 0 0
1 1 0 1
1 1 1 0
1 1 1 1
Do possible scenarios exist? Which ones are consistent? What is
their probability?

This depends on the logical interplay of constraints, and the
overall interplay of their probabilities.
Intuition
Probability of constraint scenarios
29
Combined approach, leading to a system of linear inequalities:

1. The probabilities of all constraint scenarios add up to 1.

2. The probabilities of constraint scenarios that require
constraint C to hold must add up to the probability of C.

3. Constraint scenarios that are inconsistent have probability 0.
(No trace conforms to them)

No solution: overall ProbDeclare model inconsistent.

One solution: gives the actual probability values.

Many solutions: can be used to compute probability ranges.
Approach
Probability of constraint scenarios
30
A scenario is consistent if it has at least one conforming trace.
Consistency of constraint scenario
Example
31
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N
0 1 Y
1 0 Y
1 1 Y
accept
1..* {0.8}
0..1
pay
{0.7}
• It is not possible to avoid accept while falsifying the response constraint.

• Two scenarios make 1..* accept true: their combined probability is 0.8.

• Two scenarios make response(accept,pay) true: their combined probability is 0.7.
Computing the probability of constraint scenarios
Example
32
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N
0 1 Y
1 0 Y
1 1 Y
accept
1..* {0.8}
0..1
pay
{0.7}
Computing the probability of constraint scenarios
Example
33
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N
0 1 Y
1 0 Y
1 1 Y
accept
1..* {0.8}
0..1
pay
{0.7}
• It is not possible to avoid accept while falsifying the response constraint.

• Two scenarios make 1..* accept true: their combined probability is 0.8.

• Two scenarios make response(accept,pay) true: their combined probability is 0.7.
Computing the probability of constraint scenarios
Example
34
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N 0
0 1 Y 0.2

1 0 Y 0.3
1 1 Y 0.5
accept
1..* {0.8}
0..1
pay
{0.7}
• It is not possible to avoid accept while falsifying the response constraint.

• Two scenarios make 1..* accept true: their combined probability is 0.8.

• Two scenarios make response(accept,pay) true: their combined probability is 0.7.
Probabilistic constraint entailment: given a business constraint of
interest, is it implied by the model? With which probability?

• Check which scenarios imply the constraint.

• Sum their probabilities.

Probabilistic conformance checking: given an execution trace, does
it conform to the model? With which probability (outlier vs mainstream)?

• Check conformance for each scenario.

• No scenario found: not conforming.

• One scenario found: conforming, with the corresponding probability.
Given a ProbDeclare model...
Key reasoning tasks
35
<pay>:

<accept>:

<accept,pay>:
Are these traces conforming? Are they “mainstream” or “outlier”?
Probabilistic conformance checking
36
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N 0
0 1 Y 0.2

1 0 Y 0.3
1 1 Y 0.5
accept
1..* {0.8}
0..1
pay
{0.7}
<pay>: not conforming (violates precedence)

<accept>: conforming, 30% variant

<accept,pay>: conforming, 50% variant
Are these traces conforming? Are they “mainstream” or “outlier”?
Probabilistic conformance checking
37
scenario
consistent? probability
1..* acc response(acc,pay)
0 0 N 0
0 1 Y 0.2

1 0 Y 0.3
1 1 Y 0.5
accept
1..* {0.8}
0..1
pay
{0.7}
<acc>
-

X
V
X
0.3
<acc,pay>
-

X
X
V
0.5
A framework that incorporates uncertainty into
temporal business constraints.

Combination of logical and probabilistic reasoning to
understand the resulting semantics, and to solve key
tasks.
“The future is uncertain, but the end is always near” (Jim Morrison)
Conclusion
38
Full technical framework +
monitoring techniques:

see our BPM20 paper.
Logical underpinning

via probabilistic LTLf:

see our AAAI20 paper.

More Related Content

Similar to Extending Temporal Business Constraints with Uncertainty

20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
Qatar University
 
Fault-tolerance Quantum computation and Quantum Error Correction
Fault-tolerance Quantum computation and Quantum Error CorrectionFault-tolerance Quantum computation and Quantum Error Correction
Fault-tolerance Quantum computation and Quantum Error Correction
Facultad de Informática UCM
 
Les outils de modélisation des Big Data
Les outils de modélisation des Big DataLes outils de modélisation des Big Data
Les outils de modélisation des Big Data
Kezhan SHI
 
Tempest in teapot
Tempest in teapotTempest in teapot
Tempest in teapot
Gaetan Lion
 
Classification methods and assessment
Classification methods and assessmentClassification methods and assessment
Classification methods and assessment
Leonardo Auslender
 
Machine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & InsuranceMachine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & Insurance
Arthur Charpentier
 
Monte Carlo and quasi-Monte Carlo integration
Monte Carlo and quasi-Monte Carlo integrationMonte Carlo and quasi-Monte Carlo integration
Monte Carlo and quasi-Monte Carlo integration
John Cook
 
UNIT - I Reinforcement Learning .pptx
UNIT - I Reinforcement Learning .pptxUNIT - I Reinforcement Learning .pptx
UNIT - I Reinforcement Learning .pptx
DrUdayKiranG
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
HelpWithAssignment.com
 
Chapter4
Chapter4Chapter4
Chapter4
Vu Vo
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.ppt
Rufesh
 
Priliminary Research on Multi-Dimensional Panel Data Modeling
Priliminary Research on Multi-Dimensional Panel Data Modeling Priliminary Research on Multi-Dimensional Panel Data Modeling
Priliminary Research on Multi-Dimensional Panel Data Modeling
Parthasarathi E
 
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptxL-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
RiyadhJack
 
efficiency.ppt
efficiency.pptefficiency.ppt
efficiency.ppt
AmmarAlam14
 
ImperialMathFinance: Finance and Stochastics Seminar
ImperialMathFinance: Finance and Stochastics SeminarImperialMathFinance: Finance and Stochastics Seminar
ImperialMathFinance: Finance and Stochastics Seminarelviszhang
 

Similar to Extending Temporal Business Constraints with Uncertainty (20)

Ch5 slides
Ch5 slidesCh5 slides
Ch5 slides
 
20150404 rm - autocorrelation
20150404   rm - autocorrelation20150404   rm - autocorrelation
20150404 rm - autocorrelation
 
Fault-tolerance Quantum computation and Quantum Error Correction
Fault-tolerance Quantum computation and Quantum Error CorrectionFault-tolerance Quantum computation and Quantum Error Correction
Fault-tolerance Quantum computation and Quantum Error Correction
 
CassIndTalk15g2
CassIndTalk15g2CassIndTalk15g2
CassIndTalk15g2
 
Les outils de modélisation des Big Data
Les outils de modélisation des Big DataLes outils de modélisation des Big Data
Les outils de modélisation des Big Data
 
Tempest in teapot
Tempest in teapotTempest in teapot
Tempest in teapot
 
Classification methods and assessment
Classification methods and assessmentClassification methods and assessment
Classification methods and assessment
 
Machine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & InsuranceMachine Learning in Actuarial Science & Insurance
Machine Learning in Actuarial Science & Insurance
 
paper
paperpaper
paper
 
Presentation
PresentationPresentation
Presentation
 
Monte Carlo and quasi-Monte Carlo integration
Monte Carlo and quasi-Monte Carlo integrationMonte Carlo and quasi-Monte Carlo integration
Monte Carlo and quasi-Monte Carlo integration
 
UNIT - I Reinforcement Learning .pptx
UNIT - I Reinforcement Learning .pptxUNIT - I Reinforcement Learning .pptx
UNIT - I Reinforcement Learning .pptx
 
Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help Get Multiple Regression Assignment Help
Get Multiple Regression Assignment Help
 
Chapter4
Chapter4Chapter4
Chapter4
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.ppt
 
Priliminary Research on Multi-Dimensional Panel Data Modeling
Priliminary Research on Multi-Dimensional Panel Data Modeling Priliminary Research on Multi-Dimensional Panel Data Modeling
Priliminary Research on Multi-Dimensional Panel Data Modeling
 
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptxL-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
L-8 VECM Formulation, Hypothesis Testing, and Forecasting - KH.pptx
 
efficiency.ppt
efficiency.pptefficiency.ppt
efficiency.ppt
 
Simulation notes
Simulation notesSimulation notes
Simulation notes
 
ImperialMathFinance: Finance and Stochastics Seminar
ImperialMathFinance: Finance and Stochastics SeminarImperialMathFinance: Finance and Stochastics Seminar
ImperialMathFinance: Finance and Stochastics Seminar
 

More from Faculty of Computer Science - Free University of Bozen-Bolzano

From Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two ModelsFrom Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two Models
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic SettingReasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Constraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPMConstraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPM
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Intelligent Systems for Process Mining
Intelligent Systems for Process MiningIntelligent Systems for Process Mining
Declarative process mining
Declarative process miningDeclarative process mining
From Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric ProcessesFrom Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric Processes
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Modeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware ProcessesModeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware Processes
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Soundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic ConditionsSoundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic Conditions
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Probabilistic Trace Alignment
Probabilistic Trace AlignmentProbabilistic Trace Alignment
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple ActorsStrategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Faculty of Computer Science - Free University of Bozen-Bolzano
 
From legacy data to event data
From legacy data to event dataFrom legacy data to event data
Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)Putting Decisions in Perspective(s)
Enriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral ConstraintsEnriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral Constraints
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Representing and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data accessRepresenting and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data access
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Compliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process modelsCompliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process models
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Processes and organizations - a look behind the paper wall
Processes and organizations - a look behind the paper wallProcesses and organizations - a look behind the paper wall
Processes and organizations - a look behind the paper wall
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMNFormal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...
Faculty of Computer Science - Free University of Bozen-Bolzano
 
Putting decisions in perspective(s)
Putting decisions in perspective(s)Putting decisions in perspective(s)

More from Faculty of Computer Science - Free University of Bozen-Bolzano (20)

From Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two ModelsFrom Case-Isolated to Object-Centric Processes - A Tale of two Models
From Case-Isolated to Object-Centric Processes - A Tale of two Models
 
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic SettingReasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
Reasoning on Labelled Petri Nets and Their Dynamics in a Stochastic Setting
 
Constraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPMConstraints for Process Framing in Augmented BPM
Constraints for Process Framing in Augmented BPM
 
Intelligent Systems for Process Mining
Intelligent Systems for Process MiningIntelligent Systems for Process Mining
Intelligent Systems for Process Mining
 
Declarative process mining
Declarative process miningDeclarative process mining
Declarative process mining
 
From Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric ProcessesFrom Case-Isolated to Object-Centric Processes
From Case-Isolated to Object-Centric Processes
 
Modeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware ProcessesModeling and Reasoning over Declarative Data-Aware Processes
Modeling and Reasoning over Declarative Data-Aware Processes
 
Soundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic ConditionsSoundness of Data-Aware Processes with Arithmetic Conditions
Soundness of Data-Aware Processes with Arithmetic Conditions
 
Probabilistic Trace Alignment
Probabilistic Trace AlignmentProbabilistic Trace Alignment
Probabilistic Trace Alignment
 
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple ActorsStrategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
Strategy Synthesis for Data-Aware Dynamic Systems with Multiple Actors
 
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
Modeling and Reasoning over Declarative Data-Aware Processes with Object-Cent...
 
From legacy data to event data
From legacy data to event dataFrom legacy data to event data
From legacy data to event data
 
Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)Putting Decisions in Perspective(s)
Putting Decisions in Perspective(s)
 
Enriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral ConstraintsEnriching Data Models with Behavioral Constraints
Enriching Data Models with Behavioral Constraints
 
Representing and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data accessRepresenting and querying norm states using temporal ontology-based data access
Representing and querying norm states using temporal ontology-based data access
 
Compliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process modelsCompliance monitoring of multi-perspective declarative process models
Compliance monitoring of multi-perspective declarative process models
 
Processes and organizations - a look behind the paper wall
Processes and organizations - a look behind the paper wallProcesses and organizations - a look behind the paper wall
Processes and organizations - a look behind the paper wall
 
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMNFormal modeling and SMT-based parameterized verification of Data-Aware BPMN
Formal modeling and SMT-based parameterized verification of Data-Aware BPMN
 
Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...Modeling and reasoning over declarative data-aware processes with object-cent...
Modeling and reasoning over declarative data-aware processes with object-cent...
 
Putting decisions in perspective(s)
Putting decisions in perspective(s)Putting decisions in perspective(s)
Putting decisions in perspective(s)
 

Recently uploaded

platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
muralinath2
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
DiyaBiswas10
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
YOGESH DOGRA
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
Columbia Weather Systems
 
Lab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerinLab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerin
ossaicprecious19
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
University of Maribor
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
Areesha Ahmad
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
ssuserbfdca9
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
kumarmathi863
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Erdal Coalmaker
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
AADYARAJPANDEY1
 
Structural Classification Of Protein (SCOP)
Structural Classification Of Protein  (SCOP)Structural Classification Of Protein  (SCOP)
Structural Classification Of Protein (SCOP)
aishnasrivastava
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
AlguinaldoKong
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
Richard Gill
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
subedisuryaofficial
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
yusufzako14
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
AADYARAJPANDEY1
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
ChetanK57
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SELF-EXPLANATORY
 

Recently uploaded (20)

platelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptxplatelets_clotting_biogenesis.clot retractionpptx
platelets_clotting_biogenesis.clot retractionpptx
 
extra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdfextra-chromosomal-inheritance[1].pptx.pdfpdf
extra-chromosomal-inheritance[1].pptx.pdfpdf
 
Mammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also FunctionsMammalian Pineal Body Structure and Also Functions
Mammalian Pineal Body Structure and Also Functions
 
Orion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWSOrion Air Quality Monitoring Systems - CWS
Orion Air Quality Monitoring Systems - CWS
 
Lab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerinLab report on liquid viscosity of glycerin
Lab report on liquid viscosity of glycerin
 
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
Comparing Evolved Extractive Text Summary Scores of Bidirectional Encoder Rep...
 
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of LipidsGBSN - Biochemistry (Unit 5) Chemistry of Lipids
GBSN - Biochemistry (Unit 5) Chemistry of Lipids
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
4. An Overview of Sugarcane White Leaf Disease in Vietnam.pdf
 
Structures and textures of metamorphic rocks
Structures and textures of metamorphic rocksStructures and textures of metamorphic rocks
Structures and textures of metamorphic rocks
 
Unveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdfUnveiling the Energy Potential of Marshmallow Deposits.pdf
Unveiling the Energy Potential of Marshmallow Deposits.pdf
 
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCINGRNA INTERFERENCE: UNRAVELING GENETIC SILENCING
RNA INTERFERENCE: UNRAVELING GENETIC SILENCING
 
Structural Classification Of Protein (SCOP)
Structural Classification Of Protein  (SCOP)Structural Classification Of Protein  (SCOP)
Structural Classification Of Protein (SCOP)
 
EY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptxEY - Supply Chain Services 2018_template.pptx
EY - Supply Chain Services 2018_template.pptx
 
Richard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlandsRichard's aventures in two entangled wonderlands
Richard's aventures in two entangled wonderlands
 
Citrus Greening Disease and its Management
Citrus Greening Disease and its ManagementCitrus Greening Disease and its Management
Citrus Greening Disease and its Management
 
in vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptxin vitro propagation of plants lecture note.pptx
in vitro propagation of plants lecture note.pptx
 
Cancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate PathwayCancer cell metabolism: special Reference to Lactate Pathway
Cancer cell metabolism: special Reference to Lactate Pathway
 
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATIONPRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
PRESENTATION ABOUT PRINCIPLE OF COSMATIC EVALUATION
 
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdfSCHIZOPHRENIA Disorder/ Brain Disorder.pdf
SCHIZOPHRENIA Disorder/ Brain Disorder.pdf
 

Extending Temporal Business Constraints with Uncertainty

  • 1. Extending temporal business constraints with uncertainty Fabrizio M. Maggi Marco Montali Rafael Peñaloza CAiSE Forum 2020 1
  • 2. Constraints predicating on the execution of activities over time. Notable examples: DCR Graphs [Slaats et al, BPM13] and Declare [Pesic et al, EDOC17]. • Declarative speci fi cation and enactment of business processes. • Formalization of business rules and policies in monitoring and conformance checking [___,BPM14]. Declare uses LTL over fi nite traces and its automata-theoretic characterization to provide support in the whole lifecycle. Temporal business constraints 2
  • 3. A front-end for linear temporal logic over fi nite traces The Declare framework 3 accept reject 1..* 1..* Crisp semantics of constraints: an execution trace conforms to the model if it satis fi es every constraint in the model.
  • 4. A front-end for linear temporal logic over fi nite traces The Declare framework 4 accept reject 1..* 1..* Crisp semantics of constraints: an execution trace conforms to the model if it satis fi es every constraint in the model. Inconsistent model: no conforming trace
  • 5. • Best practices: constraints that must hold in the majority, but not necessarily all, cases. 90% of the orders are shipped via truck. • Outlier behaviors: constraints that only apply to very few, but still conforming, cases. Only 1% of the orders are canceled after being paid. • Constraints involving external parties: contain uncontrollable activities for which only partial guarantees can be given. In 8 cases out of 10, the customer accepts the order and also pays for it. Some examples Uncertainty is pervasive 5
  • 6. Uncertainty as conformance ratio 6 multiset of traces
 for n cases constraint “C”
  • 7. Uncertainty as conformance ratio 7 multiset of traces
 for n cases constraint “C” conforms to C?
  • 8. Uncertainty as conformance ratio 8 multiset of traces
 for n cases conforms to C? constraint “C” …
  • 9. Uncertainty as conformance ratio 9 multiset of traces
 for n cases k 
 conforming
 traces constraint “C” k n
  • 10. Uncertainty as conformance ratio 10 multiset of traces
 for n cases k 
 conforming
 traces constraint “C” holds with probability k/n k n
  • 11. Uncertainty as conformance ratio 11 multiset of traces
 for n cases k 
 conforming
 traces n-k 
 nonconforming
 traces constraint “C” holds with probability k/n k n constraint “C” is violated with probability 1-k/n
  • 12. Uncertainty as conformance ratio 12 multiset of traces
 for n cases k 
 conforming
 traces n-k 
 nonconforming
 traces constraint “C” holds with probability k/n k n constraint “not C” holds with probability 1-k/n
  • 13. Extending Declare with probabilities ProbDeclare 13 accept reject 1..* {0.8} 1..* {0.1} Constraints have an associated probability. • Crisp constraints: those with probability 1 (must hold in every trace). • Truly probabilistic constraints: may hold or not.
  • 14. The subtlety of probabilistic constraints ProbDeclare 14 accept reject
  • 15. The subtlety of probabilistic constraints ProbDeclare 15 accept reject in 100% traces: accept and reject do not coexist
  • 16. The subtlety of probabilistic constraints ProbDeclare 16 accept reject 1..* {0.8} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs
  • 17. The subtlety of probabilistic constraints ProbDeclare 17 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs
  • 18. The subtlety of probabilistic constraints ProbDeclare 18 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs Can they overlap? No: it is not possible to satisfy all constraints at once!
  • 19. The subtlety of probabilistic constraints ProbDeclare 19 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs Can they overlap? No: it is not possible to satisfy all constraints at once!
  • 20. The subtlety of probabilistic constraints ProbDeclare 20 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs
  • 21. The subtlety of probabilistic constraints ProbDeclare 21 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs
  • 22. The subtlety of probabilistic constraints ProbDeclare 22 accept reject 1..* {0.8} 1..* {0.1} in 100% traces: accept and reject do not coexist in 80% traces: accept occurs in 10% traces: reject occurs in 10% traces: neither accept nor reject occur ⟹
  • 23. The subtlety of probabilistic constraints ProbDeclare 23 In how many traces is the order accepted and then paid? Not 70%… it is 50%! accept 1..* {0.8} 0..1 pay {0.7}
  • 24. The subtlety of probabilistic constraints ProbDeclare 24 accept 1..* {0.8} 0..1 pay {0.7} In how many traces is the order accepted and then paid? Not 70%… it is 50%!
  • 25. Consider a ProbDeclare model with n constraints. A constraint scenario picks which probabilistic constraints must hold, and which are violated (i.e., their negated version must hold). All in all: in principle, 2n scenarios, denoting di ff erent “process variants”. Key point: • Reasoning over a single scenario reduces back to standard LTLf reasoning. • Can be done with well-known automata-theoretic techniques. A probabilistic version of “process variant” Constraint scenario 25
  • 26. Crisp constraints must hold in each scenario, so we only consider choices for truly probabilistic constraints. Constraint scenarios Example 26 accept 1..* {0.8} 0..1 pay {0.7}
  • 27. Crisp constraints must hold in each scenario, so we only consider choices for truly probabilistic constraints. Constraint scenarios Example 27 scenario consistent? probability 0..1 acc precedence(acc,pay) 1..* acc response(acc,pay) accept 1..* {0.8} 0..1 pay {0.7}
  • 28. Crisp constraints must hold in each scenario, so we only consider choices for truly probabilistic constraints. Constraint scenarios Example 28 accept 1..* {0.8} 0..1 pay {0.7} scenario consistent? probability 0..1 acc precedence(acc,pay) 1..* acc response(acc,pay) 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1
  • 29. Do possible scenarios exist? Which ones are consistent? What is their probability? This depends on the logical interplay of constraints, and the overall interplay of their probabilities. Intuition Probability of constraint scenarios 29
  • 30. Combined approach, leading to a system of linear inequalities: 1. The probabilities of all constraint scenarios add up to 1. 2. The probabilities of constraint scenarios that require constraint C to hold must add up to the probability of C. 3. Constraint scenarios that are inconsistent have probability 0. (No trace conforms to them) No solution: overall ProbDeclare model inconsistent. One solution: gives the actual probability values. Many solutions: can be used to compute probability ranges. Approach Probability of constraint scenarios 30
  • 31. A scenario is consistent if it has at least one conforming trace. Consistency of constraint scenario Example 31 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 1 Y 1 0 Y 1 1 Y accept 1..* {0.8} 0..1 pay {0.7}
  • 32. • It is not possible to avoid accept while falsifying the response constraint. • Two scenarios make 1..* accept true: their combined probability is 0.8. • Two scenarios make response(accept,pay) true: their combined probability is 0.7. Computing the probability of constraint scenarios Example 32 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 1 Y 1 0 Y 1 1 Y accept 1..* {0.8} 0..1 pay {0.7}
  • 33. Computing the probability of constraint scenarios Example 33 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 1 Y 1 0 Y 1 1 Y accept 1..* {0.8} 0..1 pay {0.7} • It is not possible to avoid accept while falsifying the response constraint. • Two scenarios make 1..* accept true: their combined probability is 0.8. • Two scenarios make response(accept,pay) true: their combined probability is 0.7.
  • 34. Computing the probability of constraint scenarios Example 34 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 0 1 Y 0.2 1 0 Y 0.3 1 1 Y 0.5 accept 1..* {0.8} 0..1 pay {0.7} • It is not possible to avoid accept while falsifying the response constraint. • Two scenarios make 1..* accept true: their combined probability is 0.8. • Two scenarios make response(accept,pay) true: their combined probability is 0.7.
  • 35. Probabilistic constraint entailment: given a business constraint of interest, is it implied by the model? With which probability? • Check which scenarios imply the constraint. • Sum their probabilities. Probabilistic conformance checking: given an execution trace, does it conform to the model? With which probability (outlier vs mainstream)? • Check conformance for each scenario. • No scenario found: not conforming. • One scenario found: conforming, with the corresponding probability. Given a ProbDeclare model... Key reasoning tasks 35
  • 36. <pay>: <accept>: <accept,pay>: Are these traces conforming? Are they “mainstream” or “outlier”? Probabilistic conformance checking 36 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 0 1 Y 0.2 1 0 Y 0.3 1 1 Y 0.5 accept 1..* {0.8} 0..1 pay {0.7}
  • 37. <pay>: not conforming (violates precedence) <accept>: conforming, 30% variant <accept,pay>: conforming, 50% variant Are these traces conforming? Are they “mainstream” or “outlier”? Probabilistic conformance checking 37 scenario consistent? probability 1..* acc response(acc,pay) 0 0 N 0 0 1 Y 0.2 1 0 Y 0.3 1 1 Y 0.5 accept 1..* {0.8} 0..1 pay {0.7} <acc> - X V X 0.3 <acc,pay> - X X V 0.5
  • 38. A framework that incorporates uncertainty into temporal business constraints. Combination of logical and probabilistic reasoning to understand the resulting semantics, and to solve key tasks. “The future is uncertain, but the end is always near” (Jim Morrison) Conclusion 38 Full technical framework + monitoring techniques:
 see our BPM20 paper. Logical underpinning
 via probabilistic LTLf:
 see our AAAI20 paper.