[rules-users] Write Assumptions for NESTED List<Object>

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jun 26 06:52:23 EDT 2012


Kindly take my rule as it was written, except for the necessary
adjustments for the names of the getter methods.

-W

On 26/06/2012, aliosha79 <alex_orl1079 at yahoo.it> wrote:
> if i have well understood the DRL code the solution, in a form more
> compliant
> with my needs, could be something like this:
>
>
> when
>    $order: OrderType( $orderLineList: this.orderLine, priority != high )
>    $measureList: measure from $orderLineList
>    not ( this.measure < 12 ) from $measureList
> then
>    modify( $order ){ setPriority( "high" ) }
> end
>
> Is it right? i night to not use the get... methods... but directly to point
> the variables (this.measure... this.orderLine ... i already tried this form
> and it works).
>
> Is it correct?
> Really thanks for your help.
> Alessio
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Write-Assumptions-for-NESTED-List-Object-tp4018241p4018254.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


More information about the rules-users mailing list