[jboss-jira] [JBoss JIRA] (DROOLS-2421) Unexpected response from rule engine for windowing rules
Bishnu Shankar Pandey (JIRA)
issues at jboss.org
Wed Apr 18 02:03:00 EDT 2018
[ https://issues.jboss.org/browse/DROOLS-2421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bishnu Shankar Pandey updated DROOLS-2421:
------------------------------------------
Labels: Critical (was: )
> Unexpected response from rule engine for windowing rules
> --------------------------------------------------------
>
> Key: DROOLS-2421
> URL: https://issues.jboss.org/browse/DROOLS-2421
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.5.0.Final
> Reporter: Bishnu Shankar Pandey
> Assignee: Mario Fusco
> Labels: Critical
> Attachments: DroolsTest.zip
>
>
> Here the sample code of my window rule :
> rule "Sliding window test1"
> agenda-group "g0"
> when
> exists Fact( (facts["parameter2"] ) != null && facts["source"] == "A0") && $number: Number() from accumulate(Fact(facts["parameter2"] != null && $t : Double.valueOf(facts["parameter2"]) && facts["source"] == "A0") over window:time(2m) , sum($t))
> then
> globalList.add("2 Minute Sum of parameter2 of Source A0 is " + $number );
> end
> rule "Sliding window test2"
> agenda-group "g0"
> when
> exists Fact( (facts["parameter2"] ) != null && facts["source"] == "A1") && $number: Number() from accumulate(Fact(facts["parameter2"] != null && $t : Double.valueOf(facts["parameter2"]) && facts["source"] == "A1") over window:time(2m) , sum($t))
> then
> globalList.add("2 Minute Sum of parameter2 of Source A1 is " + $number );
> end
> I am sending request from 2 different sources. I am getting response as 0.0 after some time. I check the values in the working memory by using collect as List for the parameter values. I have found that the previous values got deleted when the response is 0.0. I need immediate help.
> Some important info:
> Fact is the class Object and it has a Hashmap(facts) as class variable. The factmap contains the variable name as key and its value as variable value.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list