[rules-users] Write Assumptions for NESTED List<Object>
aliosha79
alex_orl1079 at yahoo.it
Tue Jun 26 07:01:14 EDT 2012
Laune,
i need to know if this form is correct:
when
$order: OrderType( $orderLineList: this.orderLine, priority != high )
$measureList: measure from $orderLineList
not ( this.measure < 12 ) from $measureList
then
modify( $order ){ setPriority( "high" ) }
end
The reason is that i'm implementing a rule editor for my work in a way that,
according to a selected xsd element from a displayed tree, i have to build
the right line of DRL code. So i m forced for many reason to use a form
similar to the one written above.
The pattern i'm using (and at this point i cannot change it anymore) is
something like this:
declaring $variableList
accessing the list using (this.property == value) FROM $variableList
it's a big costraint... i know... but i have to work this way.
So should the previous rule work?
Really thanks.
Alessio
--
View this message in context: http://drools.46999.n3.nabble.com/Write-Assumptions-for-NESTED-List-Object-tp4018241p4018256.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
More information about the rules-users
mailing list