I've been beating my head on this one for a while now, and I'm not
getting it. Time to ask for help...

I'm setting up a workflow that will (automatically) one-level approve or
deny a requested change to a user's email address, based on whether or
not the requested address is already in use by some other object.

I have a Condition in the workflow, with this ECMAScript in it:


function checkalias() {
if
(IDVault.globalQuery(null,"EmailAlias",{"qalias":f lowdata.get('requestedalias')}))
return false;
else
return true;
}

checkalias();


EmailAlias is the name of the query in the DAL, and qalias is the
parameter name. It's blowing up on the IDVault.globalQuery() call,
though, with this in the log:


15:36:52,655 INFO [LogEvent] [Workflow_Started] Initiated by
cn=a02dag1,ou=Users,o=NIU, Process ID: aae5f3b367f747a59e88b2739dd6cd8b,
Process Name: cn=New Email
Alias,cn=RequestDefs,cn=AppConfig,cn=UserApplicati on,cn=ds1,ou=dirxml,o=niu,
Activity: start, Recipient: cn=a02dag1,ou=Users,o=NIU, Secondary User:
null
15:36:52,734 INFO [LogEvent] [Workflow_Forwarded] Initiated by System,
Process ID: aae5f3b367f747a59e88b2739dd6cd8b, Process Name: cn=New Email
Alias,cn=RequestDefs,cn=AppConfig,cn=UserApplicati on,cn=ds1,ou=dirxml,o=niu,
Activity: start, Recipient: cn=a02dag1,ou=Users,o=NIU
15:36:52,754 ERROR [LogEvent] [Workflow_Error] Initiated by
cn=a02dag1,ou=Users,o=NIU, Error Message: Error initializing scripting
engine or scripting context, Process ID:
aae5f3b367f747a59e88b2739dd6cd8b, Process Name: cn=New Email
Alias,cn=RequestDefs,cn=AppConfig,cn=UserApplicati on,cn=ds1,ou=dirxml,o=niu,
Activity: Activity, Recipient: cn=a02dag1,ou=Users,o=NIU



I can eliminate the IDVault.globalQuery(), and return either True or
False, and the rest of the workflow logic works ok based on that, so I
just need to get the query to work and I'm back on my way. I think.
Help?



---------------------------------------------------------------------------
David Gersic dgersic_@_niu.edu

I'm tired of receiving rubbish in my mailbox, so the E-mail address is
munged to foil the junkmail bots. Humans will figure it out on their own.