Guided Rule Editor doesn't correctly render RDRL with abbreviated combined relation conditions
Issue
- It is possible to author rules that leave out fields when using '&&' or '||' operators consecutively. The guided editor will not display such rules properly, and an incorrect version of the rule is shown in the guided editor.
For example,
rule "rule1"
dialect "mvel"
when
org.kie.example.project1.Person(age != 1 && < 10 && > 5)
then
end
In case of "rule1", "&&" is rendered as "||"
rule "rule2"
dialect "mvel"
when
org.kie.example.project1.Person(age != null && != 1 && < 10 && > 5)
then
end
In case of "rule2", only "age != null" is rendered.
Environment
- Red Hat JBoss BRMS
- 6.2.0
- 6.4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.