Property with method invocation is not recognized in modify block with executable model
Issue
When a property is updated with method invocation in modify block, build fails with executable model.
e.g.
rule "rule_clear_fact"
no-loop true
when
$fact : Fact( )
then
modify($fact) {
bd = null,
str = null,
codesList.clear();
}
end
The build error is:
[ERROR] Failed to execute goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel (default-generateModel) on project clear-list-test: Execution default-generateModel of goal org.kie:kie-maven-plugin:7.59.0.Final-redhat-00006:generateModel failed: [com/example/reproducer/P61/LambdaConsequence61F8EA836E040637382402AF3A44E214.java (30:1211) : codesList cannot be resolved] -> [Help 1]
In this example, codeList is List type property.
Environment
- Red Hat Decision Manager
- 7.12.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.