tkobayas opened a new issue, #5908:
URL: https://github.com/apache/incubator-kie-drools/issues/5908
## Parent issue
- #5678
## Failing tests
- `org.drools.compiler.integrationtests..waltz.ReteOOWaltzTest`
## Rule code snippet
```
//If the duplicate flag is set, and there is still a line in WM, delete the
line
//and add two edges. One edge runs from p1 to p2 and the other runs from p2
to
//p1. We then plot the edge.
rule "reverse edges"
when
Stage(value == Stage.DUPLICATE)
$line : Line ( $p1:p1, $p2:p2 )
then
//sysout.println("Draw "+$p1+" "+$p2);
insert( new Edge ( $p1, $p2, false, Edge.NIL, false ) );
insert( new Edge ( $p2, $p1, false, Edge.NIL, false ) );
delete( $line );
end
//If the duplicating flag is set, and there are no more lines, then remove
the
//duplicating flag and set the make junctions flag.
rule "reversing done" salience -10
when
...
```
## Error output
```
17:42:10.148 [Time-limited test] ERROR
o.d.c.k.b.impl.AbstractKieProject.buildKnowledgePackages:280 - Unable to build
KieBaseModel:KieBaseModelName
Unable to resolve type end:
Unable to find class 'end' : [Rule name='reverse edges']
Rule Compilation error : [Rule name='reverse edges']
end cannot be resolved to a type
Syntax error on token ""reversing done"", = expected
salience cannot be resolved to a variable
Syntax error on token "when", ; expected
value cannot be resolved to a variable
Syntax error, insert ";" to complete Statement
The method Line() is undefined for the type Rule_reverse_edges719376997
Syntax error on token "then", ; expected
$stage cannot be resolved to a variable
The method setValue(int) is undefined for the type Object
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]