rule "Foo"
when
$k := PriorKnowledge( )
$tt: TruthTable( logic == $k.logic )
$child1: PriorKnowledge( $k memberOf partOf, presence != $k.presence )
$csp1: StatePriority( state == $child1.presence, logic == $k.logic ) from $tt.priorities
(
or
not ( PriorKnowledge( this != $child1, $k memberOf partOf, presence != $k.presence ) )
not(
and
$child2: PriorKnowledge( this != $child1, $k memberOf partOf, presence != $k.presence )
StatePriority( state == $child2.presence, logic == $k.logic, priority > $csp1.priority ) from $tt.priorities
)
)
then
modify( $k ){
presence = $child1.presence;
}
end
Line 19:8 no viable alternative at input 'or' in rule
rule "Foo"when $k := PriorKnowledge( )
$tt:= TruthTable( logic == $k.logic ) $child1:= PriorKnowledge( $k memberOf partOf, presence != $k.presence ) $csp1:= StatePriority( state == $child1.presence, logic == $k.logic ) from $tt.priorities (or (and
$child2: PriorKnowledge( this != $child1, $k memberOf partOf, presence != $k.presence )
$csp2: StatePriority( state == $child2.presence, logic == $k.logic, priority <= $csp1.priority ) from $tt.priorities ) not ( PriorKnowledge( this != $child1, $k memberOf partOf, presence != $child1.presence ) )
)then modify( $k ){ presence = $child1.presence; }end
rule "Foo 1"
when
$k := PriorKnowledge( )
$tt:= TruthTable( logic == $k.logic )
$child1:= PriorKnowledge( $k memberOf partOf, presence != $k.presence )
$csp1:= StatePriority( state == $child1.presence, logic == $k.logic ) from $tt.priorities
$child2: PriorKnowledge( this != $child1, $k memberOf partOf, presence != $k.presence )
$csp2: StatePriority( state == $child2.presence, logic == $k.logic, priority <= $csp1.priority ) from $tt.priorities
then
modify( $k ){
presence = $child1.presence;
}
end
rule "Foo 2"
when
$k := PriorKnowledge( )
$tt:= TruthTable( logic == $k.logic )
$child1:= PriorKnowledge( $k memberOf partOf, presence != $k.presence )
$csp1:= StatePriority( state == $child1.presence, logic == $k.logic ) from $tt.priorities
not ( PriorKnowledge( this != $child1, $k memberOf partOf, presence != $child1.presence ) )
then
modify( $k ){
presence = $child1.presence;
}
end
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/c243d913-3d4d-42a8-bbb2-c1e53074d1ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.