Upload
extrememan9866
View
214
Download
0
Embed Size (px)
Citation preview
8/9/2019 Eda Patterns
1/12
Software Group Event Processing Technologiesand Architecture
| 2006 2006 IBM Corporation
EDA Patterns
8/9/2019 Eda Patterns
2/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation2
Event Representation
Structure Type Chronon Attribute data type Attribute entityreference
Attribute DB
Reference
Event schema properties and attributes
Complex Event Conditionaldelegation
Temporal explicitcausality
Event Relationships
8/9/2019 Eda Patterns
3/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation3
Event Representation Cont.
Event Identity Occurrence Time Con verse EventsEvent TypeEvent Source
Occurrence spaceDetection Time
Event Common Attributes
8/9/2019 Eda Patterns
4/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation4
Event Schema - type properties and attributes
q Structure type: the schema is one of the followingstructures: {flat, MRM, XML. RSS, Object}
q Chronon: Time granularity for time point.q Attribute data type: for each attribute, a data type for the
attributes representationq Attribute entity reference: For an attribute, an entity that
is referenced by this attributeq Database reference: For an attribute a database record
(tuple) that is referenced by this attribute
8/9/2019 Eda Patterns
5/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation5
Event schema event relationships
q Complex events is an event that may consist of otherevents.
q Conditional delegation: if the predicate is satisfied,
8/9/2019 Eda Patterns
6/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation6
Event processing context
q The players in the decision if an event is required to beprocessed by a certain mediator
qIn the most general sense:
Time interval window +
Space coordinates window +
Partition of the universe of events (e.g. there is a context forevery customer).
8/9/2019 Eda Patterns
7/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation7
Event Derivation
Context
Event Pattern
Predicate
Policies
Relevant timePartitioning
entitiesRelevant space
Filtering Pattern matching
Temporaloriented Pattern
matching
Spatial orientedPattern matching
Predicate Set Condition
Mail Room
Mail Room Mail Room
Board of Directors
Overlappingcontexts
Handlingsynonyms
ProcessingInvocation
Directives
8/9/2019 Eda Patterns
8/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation8
Event Derivation
q A pattern is a combination of all four:q Context : Determine the boundaries of a single selection
Relevant time: events that occur in this time interval are assessed for the same selection.
Relevant space: events that occur in this space coordinates are assessed for the same selection
Partition entities: events that refer to this entity or to these combination of entities are assessedfor the same selection
q Event Pattern: The pattern on history of events
Filtering: stateless single event decisions Pattern matching: logical operator on events set
Temporal oriented matching: temporal operators on events set
Spatial oriented matching: spatial operators on events set
q Predicates Logical connection predicates
Set oriented predicates
q Policies Overlapping contexts: what to do when there are overlapping instances of a single relevance
interval
Handling synonyms: what to do when there are multiple instances of the same event type
Processing Invocation: when to invoke the processing component
Directives: tuning of design decisions.
8/9/2019 Eda Patterns
9/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation9
Event Transformation
Enrich
Transform
Translate SplitDependencyoriented Compose
composeaggregate
From databaseFrom dependency
store
8/9/2019 Eda Patterns
10/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation10
Transformation
qTransform
Translate : 1 input event to 1 output event
Split: 1 input event to N output events
Aggregate: M input events to 1 output event
Compose: M input events to N output events
qEnrich: Create new event based on old event + additionalattributes
From Database
From dependency store
8/9/2019 Eda Patterns
11/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation11
Event-Driven Activities
Validate
Reject modify consultcascade
forgive
Notify
Orchestrate
Trigger Interrupt Modify Expect
Application DashboardIndividual
8/9/2019 Eda Patterns
12/12
Software Group Event Processing Technologies and Architecture
EDA Patterns 2006 IBM Corporation12
Event-driven activities
q Validate: the selected events participate in constraint violation.Validate include stabilizing policies that can (conditionally) mitigatethis violation
Reject: the causing event is filtered out, no output event from thisprocessor
Modify: the causing event is being modified. Cascade: correction of past event or modification of a database to
eliminate the constraint violation
Forgive: pass the causing event, record the violation
Consult: consult either a human agent or an automatic decision system
qOrchestration:
Trigger: new workflow instance
Interrupt: existing workflow instance
Modify: existing workflow instance
Expect: Inject external event into control flow