[rules-dev] Help with "contains" keyword

Michael Neale michael.neale at gmail.com
Wed Apr 18 20:03:20 EDT 2007


this is the dev list - that question is best answered on the user list. We
need this list for development related discussions.

On 4/19/07, Bynum, Joe <jbynum at onecommunications.com> wrote:
>
>  I'm doing some simple evaluation of jrules and I ran into a problem.
> Here's the rule I'm having problems with:
> **
> *rule* "751845 - Check Stages"
>
> *    when*
>
>         order : Order( stages excludes 921 )
>
> *    then*
>
>         System.out.println( "This order contains " + order.getStages() );
>
> *end*
>
> OUTPUT:
>
> This order contains [804, 921]
>
> I'm actually trying to do the opposite using 'stages contains 921'.
> stages is defined as follows in the Order object.
>
> private
> ArrayList<Integer> stages;
>
> I'm using the 3.0.6 binaries on W2K w/Eclipse.
>
> Any ideas what I'm doing wrong here?
>
>
>
> _______________________________________________
> rules-dev mailing list
> rules-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20070419/e39acd3d/attachment.html 


More information about the rules-dev mailing list