[
https://jira.jboss.org/browse/JBESB-2830?page=com.atlassian.jira.plugin.s...
]
David Ward closed JBESB-2830.
-----------------------------
Resolution: Done
Committed revision 34210. (trunk)
Thew new property is:
ruleEventProcessingType=CLOUD or STREAM
Description of this property is in detail in the Services Guide, as well as in javadoc and
lightly in the Programmers Guide.
Add Stream Mode support to BusinessRulesProcessor
-------------------------------------------------
Key: JBESB-2830
URL:
https://jira.jboss.org/browse/JBESB-2830
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Jeff DeLong
Assignee: David Ward
Fix For: 4.9
The BusinessRulesProcessor should support configuration for "StreamMode" with
StatelessKnowledgeSessions. Most CEP applications will require StreamMode to enable
sliding window support, garbage collection of expired facts, etc. This is really important
(a necessity), and is turned on through the API.
This would require configuration such as
<action class="org.jboss.soa.esb.actions.BusinessRulesProcessor"
name="OrderCountHistory">
<property name="ruleSet" value="OrderCount.drl"/>
<property name="ruleReload" value="true"/>
<property name="stateful" value="true"/>
<property name="vventProcessingOption " value="STREAM"/>
The code to use this would be something like:
kconfig = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
kconfig.setOption( EventProcessingOption.STREAM );
kbase = readKnowledgeBase(kconfig);
sconfig = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
sconfig.setOption( ClockTypeOption.get( ClockType.REALTIME_CLOCK.getId() ) );
ksession = kbase.newStatefulKnowledgeSession(sconfig, null);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira