How would you create something similar the below rules in a
decision table. The value of the ChoiceOption is actually an Interface
which OptionValue and ItemValue bath implement. Any ideas?
Thanks.
rule 'test'
dialect 'mvel'
when
$o :
ChoiceOption(sku=="mount")
OptionValue(value
== "inside") from $o.value
then
log("works");
end
rule 'test2'
dialect 'mvel'
when
$o :
ChoiceOption(sku=="opt3")
ItemValue(value
== "123") from $o.value
then
log("works");
end