Posted: Wed Jun 11, 2008 7:23 am Post subject: RuleSet vs. BO arrays
Acolyte
Joined: 08 Sep 2004 Posts: 52 Location: Hungary, Europe
Hello!
Maybe it'a lame problem but I can't find the sollution for the next issue in the PS RuleBuilder:
-There's a BusinessObject "AddItem" which contains a "Key" and a "Value" elements.
-AddItem is an array.
I'd like to create a rule set which fires when the value of the Key element of any of the AddItem nodes equals to a certain constant.
In the rule builder I can just create AddItem.get(<number>).Key == "<constants>" like expressions.
But as AddItem is an array, I should somehow iterate through among them because there's no garantie that for example the Key element of the first AddItem node will contains the searched value...
I tried to call a java function which returns the index of the searched AddItem node to use its result as <number>.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum