[rules-users] Fusion : Timebased rules fire only for the first time after the start of the application (tomcat)
Greg Barton
greg_barton at yahoo.com
Thu Nov 12 07:47:45 EST 2009
What are the rules?
--- On Thu, 11/12/09, Chetan Mahadev <mahadev.chetan at gmail.com> wrote:
> From: Chetan Mahadev <mahadev.chetan at gmail.com>
> Subject: [rules-users] Fusion : Timebased rules fire only for the first time after the start of the application (tomcat)
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Date: Thursday, November 12, 2009, 1:25 AM
> Hi
>
> I am trying to correlate two or more events when a
> condition gets satisfied.
>
> The rule is working fine only when i start my tomcat, and
> it fires only for the first match of the events.
>
> But subsequent events fails to correalte ( or rule doesnt
> fire). Am not sure wats the issue.
>
>
> Currently I am using the following config when i build my
> KnowledgeBase:
>
> knowledgeBaseConfig =
> KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
> knowledgeBaseConfig.setOption(
> EventProcessingOption.STREAM );
>
> kBase =
> KnowledgeBaseFactory.newKnowledgeBase( knowledgeBaseConfig
> );
>
> //kBase = newKbase();
>
> kBase.addKnowledgePackages(knowledgeBuilder.getKnowledgePackages());
>
>
>
> KnowledgeSessionConfiguration
> knowledgeSessionConfig =
> KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
> ((SessionConfiguration)
> knowledgeSessionConfig).setClockType(
> ClockType.REALTIME_CLOCK );
>
>
>
> Can anybody help here??
>
> Regds
> Chetan
>
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
More information about the rules-users
mailing list