Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2705

[Guided Rule Template] RTE when generating Template for Pattern with multiple non-template constraints

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • RC2
    • CR3
    • Hide

      1. Extract attached model-bugfixes.zip into org/jboss/qa/droolsjbpm/ path in your local maven repo
      2. start business central
      3. clone bpms-assets from git://git.app.eng.bos.redhat.com/bpms-assets-6.4.x.git
      4. navigate to guvnor>feature>enumeration>static_dependent and open static_dependent rule template.
      5. On the EnumFact [var1] add random restriction for fieldString1 and fieldString2 (I have used equal to "firstValue" and equal to "7th")
      6. In the then section add Set value of var1 fieldString1 to nilValue.
      7. Switch to source tab, validate.

      Expected result: Source generated, successfully validated.
      Actual result: Source page is blank and there is a validation error (see Description).

      Show
      1. Extract attached model-bugfixes.zip into org/jboss/qa/droolsjbpm/ path in your local maven repo 2. start business central 3. clone bpms-assets from git://git.app.eng.bos.redhat.com/bpms-assets-6.4.x.git 4. navigate to guvnor>feature>enumeration>static_dependent and open static_dependent rule template. 5. On the EnumFact [var1] add random restriction for fieldString1 and fieldString2 (I have used equal to "firstValue" and equal to "7th") 6. In the then section add Set value of var1 fieldString1 to nilValue. 7. Switch to source tab, validate. Expected result: Source generated, successfully validated. Actual result: Source page is blank and there is a validation error (see Description).

    Description

      When using two fields of an objects defined in enum as dependent (the values of one of them is dependent on the value of the other) and then setting the value of one of them in the then part, Source code fails to generate (there is only a blank page) and Validation fails on error which goes like: _Exception executing consequence for rule "static_dependent" in org.drools.template.parser: java.lang.RuntimeException: [Error: unclosed @if{} block. expected @end{}] [Near :

      {... }

      ....}] ^ [Line: 63, Column: 0]_ (see the attached picture). This is actually regression from BXMS-6.4.0.ER3 where it worked just fine.

      Attachments

        Issue Links

          Activity

            People

              manstis@redhat.com Michael Anstis
              rh-ee-jomarko Jozef Marko
              Archiver:
              rhn-support-ceverson Clark Everson
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko

              Dates

                Created:
                Updated:
                Resolved:
                Archived:

                PagerDuty