Wednesday, December 30, 2015

PropertyDescriptor to Compare and return value based comparison (ATG Oracle Commerce)


Find below Property descriptor that will compare 2 values that will be set as attribute tags, along with the comparison to do, it will
return the boolean with the result of the operation:

It works as follows, it requires  the followinng attirbutes:

  • compareOperator, it can be any logical operator such as lt,gt,eq, based on el notation.
  • leftSideType it can be a number type or a property type
  • leftSideValue it can be the value in number, or the property that contains the value
  • rightSideType it can be a number type or a property type
  • rightSideValue it can ve the value in number, or the property that contains the value


Here are 2 examples:

And here is the Java Class that makes this possible

Post a Comment