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

BRMS 6.0.1 CR1 - guided rule editor update rule not shown in UI editor.

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

XMLWordPrintable

      Description of problem: using brms-coolstore-demo project (https://github.com/eschabell/brms-coolstore-demo/tree/6.0.1) branch 6.0.1

      Setup project, start server, AUTHORING -> PROJECT AUTHORING -> GUIDED RULE -> TOTAL SHOPPING CART

      Code view tab shows:

      import java.lang.Number;
      2.
      import com.redhat.coolstore.ShoppingCart;
      3.

      4. | rule "Total Shopping Cart"
      5. | no-loop true
      6. | ruleflow-group "total-rules"
      7. | dialect "mvel"
      8. | when
      9. | $sc : ShoppingCart( )
      10. | then
      11. | $sc.setCartTotal( 0.0 );
      12. | $sc.setCartItemPromoSavings( 0.0 );
      13. | update( $sc );
      14. | end

      Using editor I remove the literal field behind line 12, changing to:

      $sc.setCartItemPromoSavings( ($sc.cartItemPromoSavings == 0.0) ? 0.0 : $sc.cartItemPromoSavings * -1 );

      Save the file, says successful, but close pop-up warns 'Sure you want to discard unsaved changes?', only choice is yes or cancel. Close rule, reopen and changes not shown.

      From command line clone ssh://localhost:8001/coolstore-demo and view source of same guided rule and it shows change:

      import java.lang.Number;
      import com.redhat.coolstore.ShoppingCart;

      rule "Total Shopping Cart"
      no-loop true
      ruleflow-group "total-rules"
      dialect "mvel"
      when
      $sc : ShoppingCart( )
      then
      $sc.setCartTotal( 0.0 );
      $sc.setCartItemPromoSavings( ($sc.cartItemPromoSavings == 0.0) ? 0.0 : $sc.cartItemPromoSavings * -1 );
      update( $sc );
      end

      Restart of server does not show new changes in UI editor either. No caching on in browser.

      Version-Release number of selected component (if applicable):
      6.0.1.CR1

      How reproducible:
      see above

      Steps to Reproduce:
      1. see above
      2.
      3.

      Actual results:
      Changes not shown.

      Expected results:
      Changes should be shown in editor.

      Additional info:

              manstis@redhat.com Michael Anstis
              eschabel Eric D. Schabell (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker (Inactive)
              Jiří Locker Jiří Locker (Inactive)
              etirelli, Lukáš Petrovický (Inactive), Michael Biarnes Kiefer, Rajesh Rajasekaran

                Created:
                Updated:
                Resolved:
                Archived: