[jboss-jira] [JBoss JIRA] Commented: (JBRULES-46) Prolog Style Query Based Backward Chaining

Michael Anstis (JIRA) jira-events at lists.jboss.org
Mon Apr 18 15:25:00 EDT 2011


    [ https://issues.jboss.org/browse/JBRULES-46?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12596302#comment-12596302 ] 

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


More information about the jboss-jira mailing list