How to use TIBCO BusinessEvents Query Language (BQL) to return information of Statemachine for a concept.
book
Article ID: KB0091566
calendar_today
Updated On:
Products
Versions
TIBCO BusinessEvents Enterprise Edition
-
Not Applicable
-
Description
Resolution: Description: =========== How to use TIBCO BusinessEvents Query Language (BQL) to return information of Statemachine for a concept.
Environment: =========== TIBCO BusinessEvents 3.x/4.x/5.x All Operating Systems
Symptoms: ========= n.a.
Cause: ====== n.a.
Resolution: ======== Create and use a RuleFunction as a argument of the BQL query.
Example: Rulefunction "RuleFunctions/getStateMachineStatus()" returns the current state of the concept using Instance.StateMachine.getCurrentStateNames().
BQL: select /RuleFunctions/getStateMachineStatus(o) as S from /concepts/conceptname as o
Add a 'where' clause to the BQL to search for a specific concept.
Issue/Introduction
How to use TIBCO BusinessEvents Query Language (BQL) to return information of Statemachine for a concept.