[jboss-jira] [JBoss JIRA] (DROOLS-445) Drools Workbench throw Unable to expand in guided rule with DSL

Claudio D'Angelo (JIRA) issues at jboss.org
Fri Feb 28 10:31:48 EST 2014


Claudio D'Angelo created DROOLS-445:
---------------------------------------

             Summary: Drools Workbench throw Unable to expand in guided rule with DSL
                 Key: DROOLS-445
                 URL: https://issues.jboss.org/browse/DROOLS-445
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.1.Final
         Environment: Linux Debian 64
Tomcat 7.0.42
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1~deb7u1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

            Reporter: Claudio D'Angelo
            Assignee: Mark Proctor


Hi,
In a project workbench I've defined a data model, a drl, a dsl and an guided rule with dsl.
In the guided rule with dsl the wizard (edit tab) work correctly but when I click "Validate" 

[6] Unable to expand: Richiesta( tipo == "RIMBORSO")
[7] Unable to expand: Richiesta( condizione == "LOG")
[9] Unable to expand:           System.out.println("OK");

My DSL is:
[when] La richiesta e' di tipo "{tipo}"=Richiesta( tipo == "{tipo}")
[when] la condizione e' "{condizione}"=Richiesta( condizione == "{condizione}") 
[when] e=and
[then] stampa = System.out.println("OK");

I've seen with the source tab of guided rule the converted rule:
1.	|	import it.test.modulistica.Richiesta;
2.	|	
3.	|	rule "bbb"
4.	|	    dialect "mvel"
5.	|	    when
6.	|	        Richiesta( tipo == "RIMBORSO")
7.	|	        Richiesta( condizione == "LOG")
8.	|	    then
9.	|	        System.out.println("OK");
10.	|	end

but I think that this is the converted rule. I think that the source must be:

import it.test.modulistica.Richiesta;

rule "bbb"
	dialect "mvel"
	when
		La richiesta e' di tipo "RIMBORSO"
		la condizione e' "LOG"

	then
		stampa
end




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list