[
https://issues.jboss.org/browse/JBRULES-46?page=com.atlassian.jira.plugin...
]
Michael Anstis commented on JBRULES-46:
---------------------------------------
Won't this achieve what you need:-
rule "UpdateCounter"
salience 10000
when
$c : Counter( .... , $value : value)
$o : BusinessObject( $something : something, .... )
then
$o.setValue($something + $value);
update($o);
end
rule "CheckCounter"
when
$o : BusinessObject(value > 1234)
then
Alerts.addNew(...);
end
Prolog Style Query Based Backward Chaining
------------------------------------------
Key: JBRULES-46
URL:
https://issues.jboss.org/browse/JBRULES-46
Project: Drools
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Reporter: Mark Proctor
Assignee: Mark Proctor
Forward Chaining means that facts are asserted and propgated forward throughout the
network, during forward propagation matching takes place which results in rules being
fired - the rules are event based, in that they are fired in response to changed in the
working memory.
Backward chaining is query based. Rules attempt to fire first but do not have the
necessary matched facts, so facts are pulled in from an external source.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira