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

Guided rule editor: Only one method call is saved when calling multiple methods on a single variable

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0
    • 6.1.0
    • Business Central
    • None

      Description of problem:
      When multiple method calls on a single bound variable are added to RHS in guided rule editor, only the first method call is rendered in the DRL source. Subsequent method calls either have no effect or can alter the first method call (all method arguments are added to the first method call).

      Version-Release number of selected component (if applicable):
      6.1.0.ER2

      How reproducible:
      -

      Steps to Reproduce:
      1. In GRE, bind variable $var to a String field in LHS.
      2. Call $var.indexOf( $var )
      3. Call $var.endsWith( "." )
      4. Call $var.substring( 0, 1 )

      Actual results:
      Only the first method call with arguments from all methods:
      $var.indexOf( $var, ".", 0, 1 );

      Expected results:
      Three method calls:
      $var.indexOf( $var );
      $var.endsWith( "." );
      $var.substring( 0, 1 );

      Additional info:

              manstis@redhat.com Michael Anstis
              jlocker Jiří Locker (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              Kris Verlaenen

                Created:
                Updated:
                Resolved:
                Archived: