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..
Refund based on Claim Amount
My approach for this
Keep claim amount as input in decision table.
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.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.
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 -
- Target Property = Refund Amount
- Build Expressions
Set "Target Property" (i.e. Refund Amount) = Result of Decision Table : "Press down key & select name of ur Decision Table"Save.
DONE..
Create a new work object to run & crosscheck.
Thank you.
Regards,
Vivek
- Edited
This discussion is now solved by above method..
Thank you.