Guided Rule Editor doesn't correctly render RDRL with abbreviated combined relation conditions

Solution Unverified - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.