61
The Role of Rules in CEP ^ and ^ and ^ and ^ and vice versa vice versa vice versa vice versa © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary. Paul Vincent, CTO Business Rules and CEP, TIBCO Software

RuleML09 - Role of Rules in CEP v2compressed - TIBCO ......Introduction - TIBCO Events Complex Event Data Messaging BPM & SOA EDA TIBCO RV TIBCO EMS TIBCO ActiveSpaces TIBCO ActiveMatrix

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

  • The Role of Rules in CEP^ and ^ and ^ and ^ and vice versavice versavice versavice versa

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    Paul Vincent,

    CTO Business Rules and CEP, TIBCO Software

  • Introduction - TIBCO

    Events

    Complex Event

    Data

    Messaging

    BPM & SOA

    EDA

    TIBCO EMSTIBCO RV

    TIBCO ActiveSpaces

    TIBCO ActiveMatrix

    TIBCO iProcess

    TIBCO BusinessEvents

    Real time / low latency Data time / high volume

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    2 © 2008 TIBCO Software Inc.

    RuleAuthoring

    Complex Event Processing

    VisualAnalysis

    EventDashboards

    PredictiveAnalytics

    TIBCO BE Decision Manager

    TIBCO BE Syndera TIBCO Spotfire

    TIBCO Spotfire S+

    Real-timeAnalytics

    Real-timePatterns

    Real-time Decisions

  • What is CEP?What is CEP?What is CEP?What is CEP?

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    3 © 2008 TIBCO Software Inc.

    What is CEP?What is CEP?What is CEP?What is CEP?

  • Simple Event Processing

    BPM: business process

    SOA: IT

    services

    new order fulfilment

    SynchronousSynchronousSynchronousSynchronousEventsEventsEventsEvents

    Fixed to specific event typesFixed to specific event typesFixed to specific event typesFixed to specific event typesFixed to specific Fixed to specific Fixed to specific Fixed to specific event typesevent typesevent typesevent types

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    4 © 2008 TIBCO Software Inc.

    process services

    Data Persistence (service)

  • Multiple Simple Event Processing

    new order fulfilment

    new supplier

    change order

    delivery

    purchasing

    rectification

    billing

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    5 © 2008 TIBCO Software Inc.

    Multiples of

    Processes

    Multiples of

    Services

    Multiplesof Database Views

    delivery billing

  • Multiple Simple Event Processing (theory)

    new order

    new supplier

    change order

    delivery

    fulfilment

    purchasing

    rectification

    billing

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    6 © 2008 TIBCO Software Inc.

    Multiples of

    Processes

    Multiples of

    Services

    Multiplesof Database Views

    delivery billing

  • Simple EP = default IT Model, 1950-now

    � Based on “human workflow”: one thing at a time

    �Processes handle cases 1 at a time � office clerk

    �Use database and refer to it where necessary � card index

    �Provide some service flexibility with middleware � internal mail

    �Called BPM (document / manage / automate processes)

    �Called SOA (share mechanised services to support processes)

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    7 © 2008 TIBCO Software Inc.

    �Called SOA (share mechanised services to support processes)

    This model does NOT exploit ALL the information / data / events

    ALL the time

    Behaviour (and business logic) is silo’d

  • Real-world Events

    CustomerLogon

    Fed Base RateIncrease

    CustomerChecks

    “Close Account”Web Page

    NewOrder

    Contract

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    8 © 2008 TIBCO Software Inc.

    ProductionItem

    Arrives at Store

    NewLiabilityAdded

    RentalCar

    Returned

    ContractSubmitted

    ContractReturnedthru EDIRental

    CarCrashed

    Mobile Callfrom [email protected]

  • Where is the information?

    CustomerLogon

    Fed Base RateIncrease

    CustomerChecks

    Close AccountWeb Page

    NewOrder

    Contract

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    9 © 2008 TIBCO Software Inc.

    ProductionItem

    Arrives at Store

    NewLiabilityAdded

    RentalCar

    Returned

    ContractSubmitted

    ContractReturnedthru EDIRental

    CarCrashed

    Mobile Callfrom [email protected]

  • Where is the information?

    Fraud Risk!

    Risk of CustomerDefection

    CustomerCrossSell

    Opportunity

    Change inProduct Sales

    Trend

    Contract

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    10 © 2008 TIBCO Software Inc.

    EmployeeOver hours

    ComplianceLimit

    Approached

    Customernow rated

    Gold

    ContractValidated

    ContractValid

    RentalContract Complete

    Cell phonefraud alert

  • Complex Event Processing

    sourceevents

    Continuous identification of event patterns

    CEP: complex

    event

    business events

    AsynchronousAsynchronousAsynchronousAsynchronousEventsEventsEventsEvents

    Flexible to any Flexible to any Flexible to any Flexible to any event typesevent typesevent typesevent types

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    11 © 2008 TIBCO Software Inc.

    BPM: business

    process

    Data Persistence (service)

    SOA: IT

    services

    event processing

    State store

  • CEP’s role: detect patterns, in real-time

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    12 © 2008 TIBCO Software Inc.

  • CEP’s terminology

    Event Streams

    Event Cloud = sum of all available events

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    13 © 2008 TIBCO Software Inc.

    13

    � CEP uses pattern detection to the event clouds & streams, and their histories

    � Multiple modelling + execution paradigms available for pattern detection

    � Problems solved: situation awareness, sense and respond, track and trace CEP

  • What does CEP cover?

    “CEP applies to a very broad spectrum of challenges in information systems”e.g.

    �Business process automation

    �Service routing and coordination

    �SLA, Policy fulfillment and breach

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    14 © 2008 TIBCO Software Inc.

    14

    �SLA, Policy fulfillment and breach checking

    �Security and fraud detection

    �Activity Monitoring

    The Power of Events, Addison Wesley, ISBN: 0-201-72789-7, 2002

  • Historic Background Historic Background Historic Background Historic Background

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    15 © 2008 TIBCO Software Inc.

    Historic Background Historic Background Historic Background Historic Background to CEPto CEPto CEPto CEP

  • Command and Control

    � Command and Control

    �Correlate all available information

    �Determine tactics based on strategy

    and up-to-date information

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    16 © 2008 TIBCO Software Inc.

    -- from RAF Battle of Britain Fighter Control System 1940http://www.raf.mod.uk

  • Message process automation

    � Collossus - http://www.tnmoc.org/ColRbd.htm

    � Searched for patterns in encrypted messages

    � Hardware-based

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    17 © 2008 TIBCO Software Inc.

  • Data Fusion

    EVENTSOURCES

    EXTERNAL

    Level 1

    Processing

    ObjectAssessment

    Human/

    Data Fusion Domain

    DISTRIBUTED

    LOCAL

    Sensors

    Level 2

    Processing

    Situation Assessment

    Level 3

    Processing

    Impact Assessment

    Level 0

    Processing

    Sub-ObjectAssessment

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    18 © 2008 TIBCO Software Inc. 24

    .

    .

    .

    Human/ComputerInterface

    Database ManagementSystem

    SupportDatabase

    FusionDatabase

    Documents

    People...

    Data SourcesLevel 4

    Processing

    Process Refinement

    -- Revised JDL data fusion model, 1998Steinberg, A., & Bowman, C., Handbook of Multisensor Data Fusion, CRC Press, 2001

  • Condition Based Maintenance

    Monitored System

    Fe

    atu

    re E

    xtr

    ac

    tio

    n

    Cla

    ss

    ific

    ati

    on

    Fu

    sio

    n

    Re

    as

    on

    ing

    Well informed

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    19 © 2008 TIBCO Software Inc.

    Fe

    atu

    re E

    xtr

    ac

    tio

    n

    Cla

    ss

    ific

    ati

    on

    Fu

    sio

    n

    Re

    as

    on

    ing

    Well informed Decision

    History

    Mission

    -- from “Data Fusion for Developing Predictive Diagnostics for Electromechanical Systems”Steinberg, A., & Bowman, C., Handbook of Multisensor Data Fusion, CRC Press, 2001

  • CEP Timeline

    Military, Logistics etcsystems

    High cost / analogLow re-use

    Financial investmentetcsystems

    High costHigh value

    Commercialsystems

    Lower costROI

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    20 © 2008 TIBCO Software Inc.

    Custom CEPimplementations

    Generic CEP tooling

    1960s 1990s 2000s

  • Considerations about Considerations about Considerations about Considerations about

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    21 © 2008 TIBCO Software Inc.

    Considerations about Considerations about Considerations about Considerations about EventsEventsEventsEvents

  • Events = Data in Motion

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    22 © 2008 TIBCO Software Inc.

  • Complex Business Problems

    � Fraud / Theft

    � Thousands-to-millions of high-value small-size product items or transactions

    � How do you identify known patterns of “suspicious” behavior?

    � Logistics / Scheduling

    � Raw material, production & delivery scheduling and resources are complex and prone to change

    Product location change

    Relevant event of interest

    Resource,

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    23 © 2008 TIBCO Software Inc.

    and resources are complex and prone to change

    � How do we reallocate resources to handle business and production changes?

    � Activity Monitoring

    � Complex production and supply process with multiple actors

    � How to measure and action Key Performance Indicators?

    Resource, requirement change

    Process data change

  • Associated Events

    � Positive Events

    � Product item X arrives at Production station S from Store T

    � Production worker Y arrives at Production station S

    � Production contract for item Z by time T is posted

    � Negative Events

    � Product item X has been in transit to Store T for >15 minutes

    � Subcomponent Y hasn’t arrived at the Production station by the ETA

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    24 © 2008 TIBCO Software Inc.

    � Subcomponent Y hasn’t arrived at the Production station by the ETA

    � Delivery of contract Z has not taken place

    � Sets of Events

    � 5+ items of Product item type Y failed to arrive at destination

    � Supplier Y was 5 mins late for 1 delivery, but made it early to the

    next

    � Return rate on component Z exceeds SLA %

  • Significant features of these Events

    � Time Sensitivity

    � A thief may leave the building at the same time as stolen product

    � A product should take 40 minutes to travel a given

    production line segment

    � Distributed Event Sources

    � A series of produced items fails at various QA stages, and

    15:39:26.41315:39:26.41315:39:26.41315:39:26.413

    Dec 24Dec 24Dec 24Dec 24

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    25 © 2008 TIBCO Software Inc.

    � A series of produced items fails at various QA stages, and their common attribute was a storage location

    � Multiple suppliers for a subcomponent are reporting delivery

    delays

    ERP Supplier

  • Defining an “event”

    � Change of state in some entity

    � Customer call

    � Bank debit

    � Aircraft movement

    � Observation of some entity

    � CRM record of a customer call

    � ATM report of debit transaction success

    Incident

    Observation

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    26 © 2008 TIBCO Software Inc.

    � ATM report of debit transaction success

    � Radar plot update of an aircraft

    � IT Message

    � Queued point-to-point message

    � Publish / subscribe message

    Observation

    IT Message

  • Event examples

    � SOA service requests � time, destination, payload

    � Scans (parcel, baggage, RFID, production line...) � location, time, payload

    � Web requests� source IP, destination, payload, frequency

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    27 © 2008 TIBCO Software Inc.

    � source IP, destination, payload, frequency

    � Messages / packets (telco, smartgrid)� source, destination, time, location

    � Data streams (data feeds)� payload, time, source

  • Where Rules fit in Where Rules fit in Where Rules fit in Where Rules fit in

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    28 © 2008 TIBCO Software Inc.

    Where Rules fit in Where Rules fit in Where Rules fit in Where Rules fit in CEPCEPCEPCEP

  • CEP used for Situation Awareness

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    29 © 2008 TIBCO Software Inc.

  • Pattern Matching against events

    � Filter events

    � Join events

    � Events can be across time

    � Events can be aggregated

    � Events can be ordered

    Queries, rules

    Event Store, State

    State

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    30 © 2008 TIBCO Software Inc.

    � Events can be ordered Collections

    OO paradigms / facts

    Queuing etc policies

  • CEP, a “technology”

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    31 © 2008 TIBCO Software Inc.

  • CEP = various technology components

    Relationship rules

    State transition rules

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    32 © 2008 TIBCO Software Inc.

    rules

    Pattern matching rules

    Reaction / decision rules

  • Rule =

    � ���� result

    � Logic: ���� inferred fact

    � Constraint: ���� constraint satisfaction fact

    � Data relationship: ���� relationship fact

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    33 © 2008 TIBCO Software Inc.

    � Production: ���� action

    � ECA: ���� action

    � State model: ���� new state

    � Query: ���� resultset

    � “CEP”: ���� new state

  • Rule types: per RuleML as used in CEP

    DerivationRule ReactionRuleIntegrityRule ProductionRule TransformationRule

    Rule

    rulequery

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    34 © 2008 TIBCO Software Inc.

    SQL: 1999

    AssertionECARule

    SQL: 1999 Trigger

    SQL:1999 View

    OCL 2.0 Invariant

    XSB 2.6 Prolog

    Rule Jess 3.4 Rule

    ECAPRule

    XSL 1.0 Rule

    MS Outlook 6 RuleOracle 10g

    SQL View

    ILOG JRule BlazeAdvisorRule

    InferenceRule ProdeduralRule

    {OR}

    Rule classification

    per Gerd Wagner, RuleML

    rulewith event declaration

    query+ callback

    rule function

    query+ callback

    function

  • EPTS Glossary: on Rules

    � Constraint (also event pattern constraint): A Boolean condition that must be satisfied by the events observed in a system.

    � Examples:

    • A service level agreement limiting the time taken to complete a mortgage transaction from the time an application is received.

    � Rule (in event processing): A prescribed method for processing events.

    � Examples:

    • Whenever three timeouts have happened send an alert to the network manager.

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    35 © 2008 TIBCO Software Inc.

    • If more than ten shopping carts have been active for more than five minutes then activate the website reaction time monitor and display an amber alert on the dashboard.

    • Whenever IBM trades 2% above its 1 hour VWAP and then within 15 minutes trades 5 points below then buy 1000 shares IBM.

    � Notes: Event processing rules may be prescribed in many different ways, including by finite state machines, activity diagrams, Java code, SQL code, ECA (event-condition-action) rules or reactive rules that are triggered by event patterns.

    � Event pattern triggered reactive rule: a rule that prescribes actions to be taken whenever an instance of a given event pattern is detected.

  • CEP = a process involving rules

    Subscriptions

    Relationships, properties, inheritance rules

    Behavioural rules

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    36 © 2008 TIBCO Software Inc.

    Behavioural rules

    Aggregation rules

    Rule executionalgorithms

  • Example: Rete-driven Production Rules

    � Scope / declaration� Classes / Events

    relevant for the rule

    � Conditions � Filters on declarations

    � Joins across declarations

    Actions

    Declarative

    Performance

    Filter

    Join

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    37 © 2008 TIBCO Software Inc.

    � Actions� What to do

    for each combination of declaration instances

    that satisfies the conditions…

    � Inference = knowledge-based

    Scalable...

    Inference = knowledge

    Event-by-event but not set semantics

    Decide

    React

  • What do What do What do What do

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    38 © 2008 TIBCO Software Inc.

    What do What do What do What do CEP rules require?CEP rules require?CEP rules require?CEP rules require?

  • CEP Rules need to handle temporal logic

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    39 © 2008 TIBCO Software Inc.

  • CEP is a Stateful process

    sourceevents

    Continuous identification of event patterns

    CEP: complex

    event

    businessevents

    Failover support for Failover support for Failover support for Failover support for

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    40 © 2008 TIBCO Software Inc.

    event processing

    State store

    Guaranteed Guaranteed Guaranteed Guaranteed DeliveryDeliveryDeliveryDelivery

    Failover support for Failover support for Failover support for Failover support for CEP enginesCEP enginesCEP enginesCEP engines

    State persistenceState persistenceState persistenceState persistence

  • Example Rule Types

    � Basic: Condition-Action

    � Triggers: Event-Condition-Action

    � Timers/schedulers:TimeUp-Action,

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    41 © 2008 TIBCO Software Inc.

    TimeUp-Action, TimeInterval-Action

    � Event lifecycle: TimeToDie-Action

  • ... also Low latency, Scalability

    sourceevent

    Rules

    CEP: complex

    event

    businessevents

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    42 © 2008 TIBCO Software Inc.

    event processing

    State store

    Event performance is dependent on Event performance is dependent on Event performance is dependent on Event performance is dependent on minimizing RTC timesminimizing RTC timesminimizing RTC timesminimizing RTC times

  • Example: fraud event processing

    Source Event definition / Source Event definition / Source Event definition / Source Event definition / transformtransformtransformtransform

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    43 © 2008 TIBCO Software Inc.

    Event definition: Event definition: Event definition: Event definition: Fire n’ forgetFire n’ forgetFire n’ forgetFire n’ forget

  • Example: fraud event processing rules

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    44 © 2008 TIBCO Software Inc.

    Basic event processingBasic event processingBasic event processingBasic event processing

    Event history processing Event history processing Event history processing Event history processing / real time analytics/ real time analytics/ real time analytics/ real time analytics

  • Alternatives to rulesAlternatives to rulesAlternatives to rulesAlternatives to rules

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    45 © 2008 TIBCO Software Inc.

    Alternatives to rulesAlternatives to rulesAlternatives to rulesAlternatives to rulesin CEP?in CEP?in CEP?in CEP?

  • Some things are not meant to be

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    46 © 2008 TIBCO Software Inc.

  • Example CEP Technologies

    Event Sources

    Event ServicesEvent ServicesEvent ServicesEvent Services Types of CEP ProcessingTypes of CEP ProcessingTypes of CEP ProcessingTypes of CEP Processing

    Rule-Driven CEP

    Inference

    Rule EngineRulebase

    Neural Net CEP

    Neural Net

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    47 © 2008 TIBCO Software Inc.

    Event Consumers

    EventBus

    Eve

    nt

    Bu

    s

    Event Stream Query CEP

    Query EngineStream Queries

    Neural NetNetwork

    Orchestrated Event Stream CEP

    Flow EngineFlow Model

  • CEP - Market Players

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    48 © 2008 TIBCO Software Inc.

    DroolsFusion

    Oracle CEP

    CEP Technology Providers vs Rule Type

  • Patterns in CEP: event lifecycles via states

    Event-driven State Changes

    - State Model for lifecycle modelling via states and

    state transition rules

    - State Machine for state execution via rule engine Continuous

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    49 © 2008 TIBCO Software Inc.

    execution via rule engine

    sourceevents

    Continuous identification of event patterns

    CEP: complex

    event processing

    Event store

    businessevents

  • State Model advantages

    1. Visual modeling metaphor

    � State diagram / flow diagram is simple to follow

    2. State / flow transitions can be time-related

    � Can model missing events through time-outs etc

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    50 © 2008 TIBCO Software Inc.

  • Example: state of rule management...

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    51 © 2008 TIBCO Software Inc.

  • Example Rule Types (continued)

    � Basic: Condition-Action

    � Triggers: Event-Condition-Action

    � Timers/schedulers: TimeUp-Action, TimeInterval-Action

    � Event lifecycle: TimeToDie-Action

    � State transition:

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    52 © 2008 TIBCO Software Inc.

    � State transition: Event-StateChange, Timeout-StateChange, StateEntry-Action, StateExit-Action

  • Patterns in CEP: continuous queries against streams

    Continuous

    Event-stream Windows

    - Queries for aggregations and statistics

    - Continuous Queriesfor aggregations across

    time, numbers of events, etc

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    53 © 2008 TIBCO Software Inc.

    sourceevents

    Continuous identification of event patterns

    CEP: complex

    event processing

    Event store

    businessevents

    time, numbers of events, etc

  • Query advantages

    1. Query language

    � Usually SQL-based – familiar to DB users

    � Result can be a derived event for other queries, rules etc

    2. Continuous operation

    � Extensions support time windows for the query to operate over

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    54 © 2008 TIBCO Software Inc.

  • Example Rule Types (continued)

    � Basic: Condition-Action

    � Triggers: Event-Condition-Action

    � Timers/schedulers: TimeUp-Action, TimeInterval-Action

    � Event lifecycle: TimeToDie-Action

    � State transition: Event-StateChange, Timeout-

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    55 © 2008 TIBCO Software Inc.

    � State transition: Event-StateChange, Timeout-StateChange, StateEntry-Action, StateExit-Action

    � Query: Query-ResultSet-Action, Event-Query-ResultSetChange-Action

  • CEP in Rules?CEP in Rules?CEP in Rules?CEP in Rules?

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    56 © 2008 TIBCO Software Inc.

    CEP in Rules?CEP in Rules?CEP in Rules?CEP in Rules?

  • Events are key to business rule enforcement / evaluation

    � Business rules drive process definitions

    � Business rules drive decisions made in business processes

    � Mapping from business rules to processes and decisions is easier from an event perspective

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    57 © 2008 TIBCO Software Inc.

    e.g. An Order over $1000 must not be accepted on credit without a credit check

    New Order event Change Order event Change Currency / exchange rate event

    Change Rule Condition event

    Rule applies to “order” process...

    Change Limit (Rule Parameter) event

  • Per Analysts, a Hot Topic

    “Saved my 401K by identifying an economic pattern via

    the metric of countingrailway trucks”

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    58 © 2008 TIBCO Software Inc.

    "Future of business rules is CEP"

    " DM platform needs data preparation and decision refinement

    and also state ie combining with CEP...

    Why not bring them together in active on / always on rule processing? "

  • Final RemarksFinal RemarksFinal RemarksFinal Remarks

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    59 © 2008 TIBCO Software Inc.

    Final RemarksFinal RemarksFinal RemarksFinal Remarks

  • Summary of Basic CEP Rule Types

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    60 © 2008 TIBCO Software Inc.

  • Concluding remark: Decisions are Event-Driven

    � Explicit, simple events

    �Credit Card application

    �Loan Request

    �Credit Increase Request

    � Derived, complex events

    �Consumer Fraud possibility

    © 2009 TIBCO Software Inc. All Rights Reserved. Confidential and Proprietary.

    61 © 2008 TIBCO Software Inc.

    �Consumer Fraud possibility

    �Merchant Fraud possibility

    �Third Party Fraud possibility

    �Employee Fraud possibility

    �Potential Customer Loss

    �Potential Customer for other product