Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-445

Drools Workbench throw Unable to expand in guided rule with DSL

XMLWordPrintable

      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

              mproctor@redhat.com Mark Proctor
              ihepda_jira Claudio D'Angelo (Inactive)
              Jozef Marko Jozef Marko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: