<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16890" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=411514215-06102009><FONT face=Arial size=2>Hi
all,</FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial size=2>One of our facts has
a collection which the rules add to.</FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial size=2>I'm trying to write
a test scenrio to cover the simple case where the fact with an empty collection
runs through and ends up containing a value "default".</FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial size=2>However I can't work
out how to get Guvnor to do this. I am presented with fact.blah and then
"equals" or "does not equal" but no contains or does not
contain.</FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial size=2>I have tried the
MVEL syntax of [default] but this complains that the expectation fails as:
"</FONT><FONT face=Arial><FONT size=2>[myFact] field [myCollection] was
[[DEFAULT]] expected [[DEFAULT]].<SPAN
class=411514215-06102009>"</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009>Is there any any way to do
this?</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009>Regards,</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=411514215-06102009><FONT face=Arial><FONT size=2><SPAN
class=411514215-06102009>
/James</SPAN></FONT></FONT></SPAN></DIV><br>**************************************************************************************<br>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.<br><br>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<br>**************************************************************************************</BODY></HTML>