DSL replaces DSLR by partial match in BRMS

Solution Verified - Updated -

Issue

  • If I have DSL like followings, DSL matches DSLR by partial match. It's not an intuitive behaviour especially when I use DSL in Guvnor because I explicitly choose a DSL which I want to match (e.g. "Print hello with decoration").

DSL:

[consequence][]Print hello=System.out.println( "hello" );
[consequence][]Print hello with decoration=System.out.println( "*** hello ***");

DSLR:

rule "Hello World"
    when
    then
        Print hello 
        Print hello with decoration
end

After expand:

package com.sample

rule "Hello World"
    when
    then
        System.out.println( "hello" ); 
        System.out.println( "hello" ); with decoration
end

Environment

  • Red Hat JBoss BRMS
    • 5.3.1
    • 6.2

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.