I don't think you can unfortunately.
You've got a number of options:
1. define a global (in sheet headers) and insert the actual values from code (perhaps reading from the spreadsheet).
2. Define a custom datatype "Name", have a table with which each row inserts a Name object with associated value and then use it in your when clause like any other fact.
3. Have a separate row for each name, use activation groups or inserting a lock/latch object, or insert logical chaining so that the then part is only executed once.
Thomas
> -----Original Message-----
> From: rules-users-bounces@lists.jboss.org [mailto:rules-users-
> bounces@lists.jboss.org] On Behalf Of LeoIo
> Sent: 23 June 2010 15:09
> To: rules-users@lists.jboss.org
> Subject: Re: [rules-users] "Not exists" on at least one element from the set
>
>
> Thanks for the fast response.
> I am using excel decision tables and can't set globals with values from the
> cells.
> I can only use brown fields and through $param refer to the contents of the
> cell.
> That leads me to a question.
> Can I define $collection in the when statement?
> something like this:
>
> when
> exists (
> $name: String from ('a','b','c')
> not Object(name == $name)
> )
> then
>
> Much obliged.
> --
> View this message in context: http://drools-java-rules-
> engine.46999.n3.nabble.com/Not-exists-on-at-least-one-element-from-the-set-
> tp916375p916887.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users