[rules-users] Is it possible to Iteriate over a list of string values ?

Wolfgang Laun wolfgang.laun at gmail.com
Wed Mar 9 07:41:26 EST 2011


On 9 March 2011 13:07, groovenarula <gnarula1 at la-z-boy.com> wrote:

>
>    XXX      YYY       "one,two,three"
>
> where XXX, YYY will be in 2 individual cells that will hold the values for
> one fact, and the "one,two,three" will be in a third cell will from which I
> need to create separate instances for each value of fact #2.
>
> I'm trying to see if there's a way to use the current spreadsheet without
> changing it drastically. That will make the solution a lot more acceptable.
>
>
Looks like reading the cells and generating Java code to insert the facts
is the cheapest solution. I see no point in constructing rules just to get
some facts into WM.



> W - Can you please elaborate on your last statement :
>
> It's doable from a spreadsheet, using the "forall" substitution.
>
> If I'm not mistake that's what I would use if it's a decision table - Would
> I be able to use 'forall' even if I'm using a template to insert the facts
> ?
>

Yes, I was referring to decision tables. No, that "forall" is done by the DT
parser/expander.

-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110309/67f0a0a3/attachment.html 


More information about the rules-users mailing list