The Value of State…


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements Complex Event Processing RSS News The Value of State…
# 1  
Old 09-03-2008
The Value of State…

vincent
09-02-2008 04:58 PM
… sounds like a political comment about Big Government [*1], but in fact we mean to delve a little into UML (and TIBCO BusinessEvents‘) State Models and their value to Complex Event Processing.

Firstly, some CEP pundits might think that for low-latency applications, you won’t have time for (or want to model) some inheritantly “long-lived” notion as “state”. However, “complex events” are derived from other events and may usefully be modelled with a “state” - in TIBCO BusinessEvents any concept (c.f. UML class) can have a state, and concepts are used to represent “complex event” objects.

State models differ from conventional Activity Diagrams (or Business Process flows in BPMN [*2]) in that:
  • the nodes in the state diagram represent an attribute (i.e. state) of the object being modeled: this is akin to an object property called “state” whose value is the name of the state node in the diagram;
    vs: in an activity or process diagram, the nodes represent some task containing behavior or activity
  • the transition paths between states represent possible changes in stat, and are (usually) defined as state transition rules (conditions for the state change to take place);
    vs: in an activity or process diagram, the links between tasks represent some task-specified movement to a new task
So what are the uses for “state” in CEP?
  1. Managing the lifecycle of entities.
    This is the obvious role: concepts have a lifecycle that is important to the business service being automated, and this information is used to direct behavior (as well as being itself a Key Performance Indicator). State represents that lifecycle for “situation awareness”.
    Examples could be:</p>
    • a network security system might define “system state” as one of {offline, no threats detected, threats detected, compromised}.
    • an anti-money laundering system might define “transaction state” as one of {received, compliance-checked, completed}.
  2. Representing a control flow.
    This is where the state of an entity represents a stage in its “processing cycle”. This means that state can be used effectively in lieu of “ruleflow” mechanisms used in popular BREs [*3]. Examples could be:</p>
    • a network security system might define a sequence of decision steps, executed by decision tables, for a sequence that includes {scoreThreat, determineSecurityAction, appraiseRegulatoryCompliance}
    • an anti-money laundering system might define a sequence of decision steps for a sequence that includes {appraiseIdentity, priceActions, appraiseRegulatoryCompliance}
  3. Case management. [*4]
    When we are monitoring important “cases” for businesses, like orders, customer applications,* renewals, etc, then state provides a convenient identifier for the “track and trace” of the case.
So State Models can play an important role in modeling CEP (and its related business processes). They can also be used very flexibly (be inherited, run concurrently, have timeouts, and so forth). Very useful for the UML modeler as well as the business process modeler and CEP modeler!

Notes:

[1] …which is about as political as we get on this blog in the run up to the 2008 US Election!

[2] BPMN (as used in TIBCO iProcess for BPM and workflow) and its equivalents for SOA (as in TIBCO ActiveMatrix BusinessWorks) are orchestration diagrams that make configuring processes and services very straightforward. As such they are really Business Analyst diagrams or developer aids, operating for example at the business-level end of the Model Driven Architecture. State Models can define their behaviors during state transitions, such as state entry or exit.

[3] Typical ruleflow constructs are loops, branches, etc - in other words, most ruleflows are equivalent to process diagrams (a.k.a. BPMN). Except few if any use BPMN. Not only can these constructs be replicated in state models, but the state transitions themselves are rules, and multiple such “flows” can be active (for different concepts) at the same time…

[4] This is really a subtype of Type 1, Entity Lifecycles, but is interesting enough to stand on its own…

Image

Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

The State of Vue.js

Here is very good video from Evan You, founder of Vue.js, on the state of Vue.js State of Vuenation with Evan You Here is a nice PDF report on Vue.js Update State of Vue.js Report Vue.js is now the second most starred project on GitHub, recently surpassing Bootstrap. These two... (0 Replies)
Discussion started by: Neo
0 Replies

2. AIX

Open firmware state to running state

Hi Admins, I am having a whole system lpar in open firmware state on HMC. How can I bring it to running state ? Let me know. Thanks. (2 Replies)
Discussion started by: snchaudhari2
2 Replies

3. Solaris

Zone in down state

Hi all, One of my zone is stuck in down state, not able to boot it or halt it root@xpm9ka1 # zoneadm list -iv ID NAME STATUS PATH BRAND IP 0 global running / native shared 2 bsmrxdb4 down /zones/bsmrxdb4 native shared root@xpm9ka1 # zoneadm -z bsmrxdb4 boot zoneadm: zone... (6 Replies)
Discussion started by: peppeunz
6 Replies

4. UNIX for Advanced & Expert Users

When a process will go to 'D' state?

I'm using "Linux hostname 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 i686 GNU/Linux" All the client machines will use Thin-client ,I will use my laptop for working and I will mount my home directory from server to my laptop. If I open the firefox in my laptop the... (1 Reply)
Discussion started by: ungalnanban
1 Replies

5. UNIX for Advanced & Expert Users

which C-state governor is in use

How can one know which C-state governor is being used by the system ? Also I'm interested to know what is the procedure to change the C-state governor , say from ladder to menu governor ? :confused: (0 Replies)
Discussion started by: vishwamitra
0 Replies

6. Solaris

Zone in down state.

One of my zone is stuck in down state, not able to boot it or halt it .. not even detach .. is there any way to recover without rebooting the whole system ( global zone ) ? (3 Replies)
Discussion started by: fugitive
3 Replies

7. UNIX for Advanced & Expert Users

TIME_WAIT state

in TCP, is TIME_WAIT state really essential..!!! (3 Replies)
Discussion started by: sasikanth
3 Replies

8. UNIX for Dummies Questions & Answers

Process State

If your process makes a system call, then while the system call code is being run in the kernel, is your process READY, RUNNING or BLOCKED? (1 Reply)
Discussion started by: ianlow
1 Replies

9. Programming

state mach{ne...

hi, I am looking for some info on how can we implement state machines. Conceptually it appears to be good but while implementing it causes lot of confusion.. I have some doubts regarding this concept. (my explanation may look wired, as I am also not clear on this front) The commonly... (2 Replies)
Discussion started by: parasa
2 Replies

10. Programming

Function in a blocked state.

Hi, How do you write a function which has to stay blocked in a wait state till an event occurs? The event could be the arrival of a message/updation of a database etc .. Regards, VJ (2 Replies)
Discussion started by: vjsony
2 Replies
Login or Register to Ask a Question