Hi,
I have a requirement to compare attributes in two objects(Object1 Vs. Object2) and store the values based on business rule in object 3.
Example rules:
If (Obj1.atrr1 != Obj2.atrr1)
Then Obj3.attr1 = Obj2.atrr1
If (Obj1.atrr2 != Obj2.atrr2)
Then Obj3.attr2 = Obj1.atrr2
If (Obj1.atrr3 - Obj2.atrr3 > 10)
Then Obj3.attr3 = Obj1.atrr3
We are planning to use decision table for this to avoid a separate GUI development.
Would like to know whether writing rule for each attribute is the only solution or is there any simpler approach?
Thanks in advance,
-Bala