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

Jozef Marko (JIRA) issues at jboss.org
Mon Jul 16 16:42:00 EDT 2018


     [ https://issues.jboss.org/browse/DROOLS-445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jozef Marko updated DROOLS-445:
-------------------------------
    Labels: drools-tools dsl guided workbench  (was: dsl guided workbench)


> 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
>    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
>              Labels: drools-tools, dsl, guided, workbench
>
> 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 was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list