Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5994

BRL action column containing method calls with template keys is modified inappropriately

    XMLWordPrintable

    Details

    • Steps to Reproduce:
      Hide
      1. Import the sample Mortgages project
      2. Replace the original LoanApplication with LoanApplication.java
      3. Replace the original Pricing Loans with Pricing loans (1).gdst
      4. Follow the steps from the video remove-call-actions.webm
      Show
      Import the sample Mortgages project Replace the original LoanApplication with LoanApplication.java Replace the original Pricing Loans with Pricing loans (1).gdst Follow the steps from the video remove-call-actions.webm
    • Docs QE Status:
      NEW
    • QE Status:
      NEW
    • [QE] How to address?:
      ---
    • [QE] Why QE missed?:
      ---

      Description

      This issue is related to the new feature implemented as DROOLS-5892

       If user removes one of action call in BRL action column, the produced DRL is updated incorrectly. Please follow the steps to reproduce.

      The original table produced a snippet

      		application.addAmount( 1 );
      		application.addExplanation( "exp" );
      		application.deadline( sdf.parse("08-Mar-2021") );
      		application.negateApproved( true );
      		application.numFunction( 1B );
      

      After we remove addExplanation and deadline, we would expect:

      		application.addAmount( 1 );
      		application.negateApproved( true );
      		application.numFunction( 1B );
      

      However the result is:

      		application.addAmount( 1 );
      		application.negateApproved( exp );
      		application.numFunction( 08-Mar-2021B );
      

        Attachments

        1. remove-call-actions.webm
          1.33 MB
        2. Pricing loans (1).gdst
          21 kB
        3. LoanApplication.java
          4 kB

          Issue Links

            Activity

              People

              Assignee:
              trikkola Toni Rikkola
              Reporter:
              jomarko@redhat.com Jozef Marko
              Tester:
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: