]
Edson Tirelli reassigned JBRULES-2061:
--------------------------------------
Assignee: Edson Tirelli (was: Mark Proctor)
rule with not fires only once
-----------------------------
Key: JBRULES-2061
URL:
https://jira.jboss.org/jira/browse/JBRULES-2061
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core (expert)
Affects Versions: 5.0.0.CR1
Environment: Linux
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
Attachments: path.zip
The following rule fires only once, although there are several Node objects passing the
<INFINITY test, and one of them must have the minimum tentDist. A rule with salience
-100 shows this.
rule relax
when
$n : Node( $ta : tentDist < Graph.INFINITY )
not Node( tentDist < $ta )
$e : Edge( nodeA == $n, $nb : nodeB, $cost : cost )
$b : Node( this == $nb, $tb : tentDist )
then
if( $ta + $cost < $tb ){
modify( $b ){
setTentDist( $ta + $cost ),
setParent( $n );
}
System.out.println( "new td = " + ($ta + $cost) + " from
" + $n.getId() + " to " + $b.getId() );
}
end
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: