[jboss-jira] [JBoss JIRA] (DROOLS-1468) Support OOPath in accumulate functions
Mario Fusco (JIRA)
issues at jboss.org
Wed Sep 20 09:54:00 EDT 2017
[ https://issues.jboss.org/browse/DROOLS-1468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-1468.
---------------------------------
Resolution: Won't Do
I discussed this with [~mark.proctor] and we agreed that oopath shouldn't be used in an accumulate function.
> Support OOPath in accumulate functions
> --------------------------------------
>
> Key: DROOLS-1468
> URL: https://issues.jboss.org/browse/DROOLS-1468
> Project: Drools
> Issue Type: Feature Request
> Components: core engine
> Affects Versions: 7.0.0.Beta7
> Reporter: Tibor Zimányi
> Assignee: Mario Fusco
> Priority: Minor
> Labels: oopath
>
> It would be nice to have the ability to use OOPath in accumulate functions. E.g. _sum(/fact/property)_.
> Example of a rule:
> import org.drools.compiler.oopath.*;
> global java.lang.Object globalVar
> rule R when
> accumulate ( Adult() ; $accumulateResult: sum(/children/age) )
> then
> kcontext.getKieRuntime().setGlobal(\"globalVar\", $accumulateResult);
> end
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list