Uploaded image for project: 'Guvnor'
  1. Guvnor
  2. GUVNOR-2172

In operator does not work with a template key as value in guided template

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: drools_6.1.0.Final, drools_6.2.0.Final
    • Fix Version/s: drools_6.3.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      Build-Timestamp: Fri, 1 Aug 2014 14:32:40 +0200
      Implementation-Title: KIE Drools Workbench - Distribution Wars
      Implementation-Version: 6.1.0.Final
      Os-Version: 2.6.32-431.el6.x86_64
      Built-By: kiereleaseuser
      Specification-Vendor: JBoss by Red Hat
      Created-By: Apache Maven
      Os-Name: Linux

      In a guided template, when an in operator is used in an expression and the value is provided using a template key, the data entered for that key in the data tab is always considered a string and wrapped in a double quotes as follows.

      expression - OrderID in $orderTemplateKey
      data tab value for the $orderTemplateKey -> a,b,c
      resulting source - OrderID in "a,b,c"
      data tab value for the $orderTemplateKey -> (a,b,c)
      resulting source - OrderID in "(a,b,c)"

      These would be a mismatched input to the 'in' operator at run-time. This is making guided template editor pretty much useless for most real world scenarios and should be fixed ASAP.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manstis Michael Anstis
                Reporter:
                amitkhanchi amit khanchi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: