[esb-issues] [JBoss JIRA] Closed: (JBESB-2830) Add Stream Mode support to BusinessRulesProcessor

David Ward (JIRA) jira-events at lists.jboss.org
Mon Jul 26 17:29:33 EDT 2010


     [ https://jira.jboss.org/browse/JBESB-2830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Ward closed JBESB-2830.
-----------------------------

    Resolution: Done


comment tweaked.

> 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

        


More information about the esb-issues mailing list