Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg...

19
Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul National University

Transcript of Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg...

Page 1: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Monitoring Business Processes with Queries

VLDB2007

CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg

2008. 3. 7

Summarized by Gong GI Hyun, IDS Lab., Seoul National University

Page 2: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

BPEL

Business Processes Execution Language (BPEL)

Process spec. represented in XML

operations (atomic/ compound activities)

flow and data

Designed using visual tools

Graphs of nodes and edges

Compiled into executable code & run on any BPEL ap-plication server

The recent BPEL standard provides an XML-based Lan-guage to describe both the

Interface exposed by a process

Its full operational logic / Execution flow.

IDS Lab. Seminar - 2

Page 3: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

BP Management System

BP Management Systems are a software platforms that facilitate the definition, deployment, execution, and mon-itoring of BPs.

Monitoring BP

Guarantee fair play: notify on too many cancels

Maintain Service level: monitor response time

Promotions: prizes for the x10,000 transaction

Illegal access: notify on buyers attempt to confirm bids without registering first

IDS Lab. Seminar - 3

Page 4: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Examples…

Guarantee fair play: notify on too many cancels

IDS Lab. Seminar - 4

Page 5: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Examples…

Maintain Service level : monitor response time

IDS Lab. Seminar - 5

Page 6: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Examples…

Promotions: prizes for the x10,000 transaction

IDS Lab. Seminar - 6

Page 7: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Examples…

Illegal access: notify on buyers attempt to confirm bids without registering first

IDS Lab. Seminar - 7

Page 8: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Background and Challenges

BPM systems send process traces as events Very large field.

active database, publish-subscribe, production system, temporal logic,…

IDS Lab. Seminar - 8

Current Approach Our Approach

Abstraction level Events, SpecWrite queries the sameway as the spec

Efficiency Generic Optimization Exploit knowledgeof the spec

Implement & De-ployment

Propriety languageNot portable

Run everywherePortable

Page 9: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

BP-Mon : Contributions

Query Abstraction level

High level graphical query language

Tight analogy to the spec

Efficiency

Dedicated efficient automata based Algorithm

Optimizations based on analysis of spec

Pruning of redundant monitoring

Implementation & Deployment

Compiles a BP-Mon query into a BPEL process

Easy deployment, portability

Minimal overhead

IDS Lab. Seminar - 9

Page 10: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Model : Event

IDS Lab. Seminar - 10

Page 11: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Model : Execution Trace

Nodes

Activation

Completion

Timestamps

11:32:00…

Edges

Flow

Zoom-in

Zoom,out

IDS Lab. Seminar - 11

Page 12: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Model : Execution Pattern

EX-pattern: EX- trace without timestamps

A query defines a set of EX-patterns obtained by

Rep

Replacing with arbitrary

number of copies

Or

choosing an

internal trace& replacing

IDS Lab. Seminar - 12

Page 13: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Pattern Matching

Data structures for BackTracking

Events-list

– Contains trace nodes that may need to be (re)processed.

– Each new event node is appended to its end.

Tested

– Contains computed nodes.

Current-event (variable)

– Points to an event in the events-list that the state need to process.

IDS Lab. Seminar - 13

Page 14: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBT

Pattern Matching

IDS Lab. Seminar - 14Center for E-Business Technology

Page 15: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Optimization

Avoid redundant processing / Record only useful history.

Remove Irrelevance & Inconsistency Nodes

Activity o is irrelevant to query node n

– if there is no EX-trace of S where it participates in an embed-ding.

Activity o is inconsistent with EX-pattern p

– if p cannot be embedded into any EX-trace of S that contains an activation event of o.

IDS Lab. Seminar - 15

Page 16: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Implementation : Architecture

IDS Lab. Seminar - 16

Page 17: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Implementation : Visual Interface

IDS Lab. Seminar - 17

Page 18: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Experiments Results

IDS Lab. Seminar - 18

Page 19: Monitoring Business Processes with Queries VLDB2007 CatrielBeeri, AnatEyal, Tova Milo, AlonPilberg 2008. 3. 7 Summarized by Gong GI Hyun, IDS Lab., Seoul.

Copyright 2006 by CEBTCenter for E-Business Technology

Conclusion

User friendly query language for monitoring BPs:

Graphical and intuitive (wizard)

Algorithm

Irrelevancy & inconsistency

Implementation

Compiles into BPEL=> Easy deployment, portability, and minimal overhead

Future work

Querying/mining logs

Incomplete information

Application to software monitoring and verification

More optimization

IDS Lab. Seminar - 19