Hi, i'm trying to check if a CN is allready available or not

What i have done
Query
Name: Test01
Parameters: key(UserGroupName) Dislplay Lable (Name of the User Group)
Condition: CN equals %UserGroupName%
Search Root: my Container with all my UserGroup's
Search Scope: Container and Subcontainer
Max Search Entries: 20

In the Data Item Mapping bevore my Condition GroupName defined as
flowdata (flowdata.GroupName) as String.

In my Condition Activity i added the following Code in Condition
Expression:
***********
function ()
{
var v = IDVault.globalQuery("Test01",
{UserGroupName:flowdata.get('GroupName')});
if (v.size() > 0)
{
return true;
}
else
{
return false;
}
};
*********
What i expect is, that the WF takes the true way, if an with the same
name exists, and goes false way if not.

Someone see my error?
Thanks for your help.


--
AndreasBucher
------------------------------------------------------------------------
AndreasBucher's Profile: http://forums.novell.com/member.php?userid=24621
View this thread: http://forums.novell.com/showthread.php?t=375762