[rules-users] Can eval($param) be used as condition in the Spreadsheet decision table?

2011-07-08 Thread Wishing Carebear
Is it possible to put eval($param) as Condition in the decision table so
that the cells can have flexible values.?

Thanks.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Can eval($param) be used as condition in the Spreadsheet decision table?

2011-07-08 Thread Michael Anstis
If you mean in Guvnor, then no you cannot define a predicate not associated
with a pattern I.e. only Pattern( evaluate( something) ) is possible at
present. The same question was asked yesterday too so please file a JIRA and
we can look into implementing as it appears to be needed.

If you mean in XLS decision tables then I believe this is possible now.

Use of Templates in Guvnor might be an option for you that supports
predicates not associated with a pattern now by using free form DRL.

sent on the move

On 8 Jul 2011 14:55, Wishing Carebear wishing.careb...@gmail.com wrote:
 Is it possible to put eval($param) as Condition in the decision table so
 that the cells can have flexible values.?

 Thanks.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Can eval($param) be used as condition in the Spreadsheet decision table?

2011-07-08 Thread Swindells, Thomas
Yes, all the decision table compiler does is convert the cells into a drl file 
by doing some string manipulation, all it does with $param is do a string 
replace, so if you end up with a valid statement after the replacement has been 
done you can do whatever you like. Similar as you are suggesting some of our 
rules are constructed like field $param 0 where the cell values are either ==, 
= etc.

Thomas

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wishing Carebear
Sent: 08 July 2011 14:54
To: Rules Users List
Subject: [rules-users] Can eval($param) be used as condition in the Spreadsheet 
decision table?

Is it possible to put eval($param) as Condition in the decision table so that 
the cells can have flexible values.?

Thanks.



**
This message is confidential and intended only for the addressee. If you have 
received this message in error, please immediately notify the 
postmas...@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