Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4784

Using expression editor matches clause is removed after the rule is saved

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 7.11.1.GA, 7.13.2.GA
    • Business Central
    • None
    • RHDM

      RHPAM

    • False
    • None
    • False
    • ---
    • ---

      Customer wants to use matches clause on the list of values.  When they used expression editor to define a condition on the string. e.g:
      MATCHES(“HYBRIDPARTYFRAUD.*”) 

      After saving and then they reopened the rule they observed the MATCHES clause has been removed, and replaced with empty equals clause.

       

      See attached screenshots:

       
      1. First screenshot creates this as source:
       
      ```
      package com.space.hello_world;

      import java.lang.Number;
      import java.lang.String;

      rule "test"
      dialect "mvel"
      when
      DcdRequest( $ruleInfo : brainiacRuleInfo != null )
      (String( matches("HYBRIDTINYFRAUD.*")) from $ruleInfo)
      then
      end
      ```
       
      2. after close and reopen I see this:
       
      ```
      package com.space.hello_world;

      import java.lang.Number;
      import java.lang.String;

      rule "test"
      dialect "mvel"
      when
      DcdRequest( $ruleInfo : brainiacRuleInfo != null )
      (String( ) from $ruleInfo)
      then
      end
      ```

              kverlaen@redhat.com Kris Verlaenen
              rhn-support-luzrodri Luz Rodriguez
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: