Re: Mini-lang equivalent to while loop
Posted by
Jacques Le Roux on
URL: http://ofbiz.116.s1.nabble.com/Mini-lang-equivalent-to-while-loop-tp174056p174060.html
Hi Scott,
From my PoV this seems interesting. I could review your patch if you create a Jira issue.
Jacques
From: "Scott Gray" <
[hidden email]>
> Hi Jacopo
>
> I need to be able to break out of the loop when a condition becomes true
> and it looks like i can't do this with the loop tag. Would if be
> worthwhile if I spent some time creating a <while-compare> tag (i.e. is
> it likely to get committed) or otherwise I can just switch to java or
> bsh to do what I need.
>
> Thanks
> Scott
>
> Jacopo Cappellato wrote:
> > Hmmm sorry,
> >
> > however this is an equivalent for the "for" java command... I don't
> > know if it will help you to do what you need.
> >
> > Jacopo
> >
> > Jacopo Cappellato wrote:
> >> Hi Scott,
> >>
> >> have a look at the receiveInventoryProduct minilang method in:
> >>
> >> applications\product\script\org\ofbiz\shipment\receipt\ShipmentReceiptServices.xml
> >>
> >>
> >> you'll find an example of the <loop> operation
> >>
> >> Jacopo
> >>
> >>
> >> Scott Gray wrote:
> >>> Hi All
> >>>
> >>> I can't seem to find anything among the minilang tags that is
> >>> equivalent to a while loop in java, can anybody point me in the
> >>> right direction or let me know if there isn't anything?
> >>>
> >>> Thanks
> >>> Scott
> >
> >