The simplest way I can think of is to create a setAppendCountry(String iso) method on your
fact which appends the country to the list.
That way you just set your action to set the "appendCountry" property, and it
will be added to the list.
On 12 Feb 2013, at 12:01, Aditi Hardas <aditi.hardas(a)gmail.com> wrote:
I have to set some value into the list (in the action section) when
condition
will evaluate to true.
I have two conditions (Policy Type, Policy Status) and three actions (Mode,
Order and Country). I want when Policy Type = 0 and policy Status = 1 then
Mode = 2 , Order = 0 and Country = India. Same for Policy Type = 0 and
policy Status = 2 then Mode = 2 , Order = 0 and Country = USA.
Here Policy Type, Policy Status, Mode, Order are of type Integer and country
is of type List which will tack a string argument.
How to set a value in the list from Guvnor?
<
http://drools.46999.n3.nabble.com/file/n4022246/2013-02-12_173014.png>
-----
Aditi
--
View this message in context:
http://drools.46999.n3.nabble.com/guvnor-5-5-Guided-decision-tables-web-b...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users