INFS4201 Distributed Enterprise Computing Module 1: Workflow Systems - PowerPoint PPT Presentation

1 / 51
About This Presentation
Title:

INFS4201 Distributed Enterprise Computing Module 1: Workflow Systems

Description:

... the effect of a committed action in a way that does not depend on ... Presents modelling challenges beyond stand-alone workflow systems. INFS4201 Module 1 ... – PowerPoint PPT presentation

Number of Views:67
Avg rating:3.0/5.0
Slides: 52
Provided by: ITEE
Category:

less

Transcript and Presenter's Notes

Title: INFS4201 Distributed Enterprise Computing Module 1: Workflow Systems


1
INFS4201Distributed Enterprise ComputingModule
1 Workflow Systems
  • Semester 2, 2002
  • School of Information Technology and Electrical
    Engineering

2
Module 1 Lectures
  • Overview of Workflow Systems
  • Workflow Modeling
  • Workflow Process Change
  • Workflow Management
  • Standards, Trends, Products

3
Sub Topics
  • Architectural Issues
  • Transactional Workflows
  • Cross-Organizational Workflows

4
Workflow Management Systems
Workflow Management System (WFMS) is the software
that defines, creates, and manages the execution
of workflows
Communication Protocol
DBMS
?
MDBMS
File System
Informix
DBMS
DBMS
Oracle
DB2
CS
CS
CS
5
What do WFMSs provide?
  • With the introduction of WfMS a facility came up
    that allows for both
  • Composing large distributed application systems
    out of smaller pieces which can be developed
    independently
  • Supporting real world business process
    concurrently performed by many different users
    exploiting various tools in a network

6
Architectural Issues
  • Generic product structure
  • Process definition
  • Process definition meta model
  • Client applications
  • Invoked applications
  • Interoperability
  • Administration and monitoring
  • Source Workflow Management Coalition www.wfmc.org

7
Generic Product Structure
8
Workflow Components Interfaces
9
Process Definition
10
Process Definition Meta Model
11
Client Applications
12
End Users View
13
Invoked Applications
14
Interoperability
15
Administration and Management
16
Suggested Reading
  • Workflow Management Coalition. Workflow Reference
    Model
  • INFS4201 Handout 3

17
WFMS DBMS
18
WFMS 3 Tier System Structure
GUI
Tier 1
WFMS Client
WFMS Server
Tier 2
DBMS Client
DBMSServer
Tier 3
Database
19
WFMS User Types
  • End Users
  • Process Modellers (Business Analysts)
  • Process Administrators
  • System Administrators
  • Customer Support
  • External Users

20
How Users Work with the WFMS
  • GUI Variants
  • WFMS propriety interface
  • Operating System Metaphors (Windows Explorer)
  • Desktop of another system (Lotus Notes)
  • Custom developed

21
Working with Worklists
  • Pull Mode
  • Push Mode
  • Grab Mode
  • Activity Functions
  • Start
  • Restart
  • Re-execute
  • Finish
  • Suspend
  • Resume
  • Terminate

22
Working with Processes
  • Start
  • Suspend
  • Resume
  • Query
  • Update

23
Working with Activites
  • Create a workitem
  • Reschedule
  • Query
  • Transactional actions (repair, commit,
    compensate, )

24
Application Programming Interface
  • WFMS provides access to all data and functions
    via APIs
  • Worklist API
  • Operation API
  • Administration API
  • Process API
  • Audit Trail API
  • Buildtime API
  • Container API

Programming Language Messaging Interface
25
Suggested Reading
  • F Leyman and D.Roller. Production Workflow
    Concpets and Techniques. Prentice Hall, 2000.
    Chapter 3 (3.5.3 3.5.6, 3.9, 3.10)
  • INFS4201 Handout 3

26
Workflows and Transactions
  • In the context of transactions, workflow is a
    (high level) activity, that consists of a set of
    tasks with a well-defined precedence relationship
    between them
  • The workflow (activity) is typically
    long-duration
  • Workflow tasks (sub-transactions) are allowed to
    commit individually, permitting partial results
    to be visible outside the workflow
  • Relaxation of ACID properties

27
Classification of Transactions
  • Distribution
  • Transactions in Centralized DBMSs
  • Transactions in Distributed DBMSs
  • Duration
  • Short-life transactions
  • Long-life / long duration transactions
  • Processing
  • On-line / interactive transactions
  • Batch transactions
  • Grouping of Operations
  • Flat transactions
  • Nested transactions

28
Nested Transactions
  • Grouping of operations into hierarchical
    structures
  • A set of sub-transactions that may recursively
    contain other sub-transactions

Begin-transaction Reservation Begin-transaction
Airline End. Airline Begin-transaction
Hotel End. Hotel Begin-transaction
Car End. Car End
29
Types of Nested Transactions
  • Closed Nested Transaction
  • Sub-transaction begins after the root and
    finishes before
  • Commit of sub-transaction is conditional upon the
    commit of the root
  • Top-level atomicity
  • Open Nested Transactions
  • Relaxation of top-level atomicity
  • Partial results of sub-transactions visible
  • Sagas
  • Split transactions

30
Advantages of NTM
  • Higher level of concurrency
  • Objects can be released after sub-transaction
  • Independent recovery of sub-transactions
  • Damage is limited to a smaller part, making it
    less costly to recover
  • Creating new transactions from existing ones

31
Sagas Open and Long-duration Transactional Model
  • A collection of actions that form a long duration
    transaction
  • A collection of actions
  • A graph whose nodes are either actions, or one of
    Abort, Complete called the terminal nodes
  • An indication of the start called the start node

start
Successful path A0, A1, A2, A3 Unsuccessful
paths A0, A1, A4 A0, A1, A2, A5
A0
A1
A2
abort
complete
A4
A3
abort
A5
32
Concurrency Control in Sagas
  • Concurrency control is managed by two facilities
  • Each action A, is itself a (short) transaction
  • Uses conventional concurrency control such as
    locking
  • The overall transaction which can be any path
    from the start node to one of the terminal nodes
  • Uses the concept of Compensating transactions
  • A Compensating transaction rolls back the effect
    of a committed action in a way that does not
    depend on what happened to the database between
    the time of the action and the time of the
    compensating transaction
  • If A is any action, A-1 is its compensating
    transaction, and ? is any sequence of legal
    actions and compensating transactions, then A ?
    A-1 ? ?

33
Workflow Transactions
  • Various concepts introduced to overcome problem
    of dealing with sub-transaction commit
  • Compensating tasks
  • Critical tasks
  • Contingency tasks

34
Transactional Workflow
  • Streaming
  • Atomicity
  • Compensation
  • Support a run-and-gun environment
  • Parts of a workflow once started must be
    completed
  • Implemented as work-item streams
  • Micro-script streams
  • Transaction streams
  • Work package streams

Over-loaded term!
35
Transactional Workflow
  • Support all-or-nothing semantics
  • Encapsulation of re-usable (transactional)
    functions to form global transactions
  • Concept of atomic spheres
  • All activities transactional
  • All activities have same predecessor (or none)
  • All activities commit or all abort
  • Streaming
  • Atomicity
  • Compensation

36
Transactional Workflow
  • Support a business-oriented unit of work
  • Consider non-transactional functions as well
  • Concept of compensation spheres
  • Invoke corresponding compensation activities in
    reverse order
  • Invoke compensation activity for the compensation
    sphere
  • Streaming
  • Atomicity
  • Compensation

37
Suggested Reading
  • F Leyman and D.Roller. Production Workflow
    Concpets and Techniques. Prentice Hall, 2000.
    Chapter 7.
  • INFS4201 Handout 3

38
Emerging Concepts
  • Virtual Organizations and E-Services
  • An enterprise that out sources everything
  • An entity composed of geographically dispersed
    workers (processes) who share their work and
    communicate only by electronic means
  • Appears like a traditional enterprise to its
    customers, but the services and products it
    provides rely on the core business processes and
    resources of multiple constituent enterprises
  • The member enterprises may be participating in a
    strategic alliance, or may collaborate only for
    the duration of one electronic commerce
    transaction

39
Collaborating Enterprises
Customer
Merchant
Supplier
Shipper
Bank
Source Christoph Bussler. Tutorial ER2001
40
Integration Technologies
  • Business to Business (B2B) or Application to
    Application (A2A) / Enterprise Application
    Integration (EAI)
  • Semantic Integration or Technical Integration

41
Basic B2B Integration Concepts
  • Event
  • Occurrence of business data that is of interest
  • Trading Partner
  • Organization that participates in event exchange
  • B2B Protocol
  • Specification of event exchange between trading
    partners over a network
  • Back end Application
  • Application within trading partner that is
    source/destination of events
  • Process management
  • Definition and execution of business processes
    describing integration behaviour

42
Problem Space of B2B Integration
  • B2B protocols
  • EDI, RosettaNet, Swift,
  • Network transport
  • SOAP, ebXML, EDIINT,
  • Security
  • Certificates, Authorization, Key Management
  • Back end application integration
  • Process management
  • Between and within trading partners

43
Cross-Organizational WFs
  • Cross-organizational, but integrated solution for
    business process management
  • (Public) workflow composition from pre-existing
    (private) component processes owned and developed
    by independent organizations
  • Presents modelling challenges beyond stand-alone
    workflow systems

44
Process Interactions
  • Chained
  • Nested
  • Joint Invocations
  • Cross Synchronization

45
Process Interactions
  • Chained
  • Nested
  • Joint Invocations
  • Cross Synchronization

A2
B3
A1
A5
B1
B2
B5
B4
A3
A4
46
Process Interactions
  • Chained
  • Nested
  • Joint Invocations
  • Cross Synchronization

A2
B3
A1
A5
B1
B2
B5
B4
A3
A4
47
Process Interactions
  • Chained
  • Nested
  • Joint Invocations
  • Cross Synchronization

B1
A4
A1
A3
B4
B5
B3
A5
B2
A2
48
Process Interactions
  • Chained
  • Nested
  • Joint Invocations
  • Cross Synchronization

A2
B3
A1
B1
B2
A5
B5
B4
A3
A4
49
Heterogeneous WFMSs
  • Homogeneous WFMSs
  • Support the same meta model
  • WFMSs can exchange data directly since no
    translation is required
  • Heterogeneous WFMSs
  • Need at least a common denominator in terms of
    interfaces
  • Mapping of WFMSs meta models

50
Challenges
  • Modelling
  • Composing global processes
  • Execution
  • Interoperability between heterogeneous WFMSs
  • New area, many open questions
  • Interested research students welcome!

51
Suggested Reading
  • Christoph Bussler. Enterprise Wide Workflow
    Management. IEEE Concurrency. 1999
  • NFS4201 Handout 3
  • Acknowledgements
  • Tutorial on Modelling B2B Integration by
    Christoph Bussler in ER2001, Yokohama Japan, Nov
    2001.
  • Karsten Schulz, SAP Corporate Research.
Write a Comment
User Comments (0)
About PowerShow.com