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

DSL sentence with multiple variables is defect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 6.0.1.Final
    • None
    • None

      In current kie-drools-wb-6.1.0-SNAPSHOT-jboss-as7.0 and kie-wb-6.1.0-SNAPSHOT-jboss-as7 it isn't possible to use DSL sentences with more than one variable.

      to reproduce:

      append in uf-playground mortgages ApplicatonDsl:

      [when]When the credit rating is {rating:ENUM:Applicant.creditRating} and date after {dos:DATE:default} = applicant:Applicant(creditRating=="{rating}" && applicationDate>"{dos}")
      

      create a new GUIDED RULE (WITH DSL) and use the new dsl when sentence

      view source:

      when 
       applicant:Applicant(creditRating=="AA and date after 13-Feb-2014")
      

            mproctor@redhat.com Mark Proctor
            kjemella_jira Kai Jemella (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: