Hello Everyone...
In my project i need to create following condition & automate Refund amount which is displayed on UI.
I tried Decision tree but its not working. Can someone guide me on this..

    6 days later

    My approach for this

    1. Keep claim amount as input in decision table.

    2. Include conditions in decision table, also make use of “Use Range” option. return values are
      1 (on 100% condition)
      0.6 (on 60% condition)
      0.5 (on 50% condition)
      0.4 (on 40% condition)
      0 (last condition)
      return value I will keep in a parameter.

    3. Calculate the refund amount : Parameter (result of decision table) * Claim Amount in a property-Set method or set method in data transform wherever I call decision table.

    Try this approach.

      a month later

      Thank you Sivastav,
      There is another way which worked perfectly well here.
      Little bit input conditions changed as below. So the further coding needed to be changed.

      • Claim Amount Range >> Refund Amount
      • 0 to 25000 >> Refund Amount = (0.75*Claim Amount)
      • Other conditions are same as in original question..

      Step 1 : Define Decision table with "Amount<="

      Step 2 : Create Declare Expression Rule as below -

      1. - Target Property = Refund Amount

      2. - Build Expressions
        Set "Target Property" (i.e. Refund Amount) = Result of Decision Table : "Press down key & select name of ur Decision Table"

      3. Save.

      DONE..
      Create a new work object to run & crosscheck.

      Thank you.
      Regards,
      Vivek

      This discussion is now solved by above method..
      Thank you.

        Write a Reply...

        -An Initiative Of OneStopPega- Love our work? Support Us🖤