Getting this cast exception and I am not sure why. This is just a simple
mapping activity:


Mapping activity code:

Map:
filter(flowdata,'CIMS.net');

to:
flowdata.start/request_form/ACME-LOCATIONS-CIMS-net

Global Functions:

function filter(flowdata, target)
{
AppName = flowdata.get('start/request_form/ApplicationName');
LocName = flowdata.get('start/request_form/LocationName');
debug(AppName);
switch (AppName)
{
case target:
{
debug(LocName);
return LocName;
break;
}
default:
{
return null;
break;
}
}
}

function debug(message)
{
m = "\n************** D E B U G *************************\n";
m = m + "*\n";
m = m + "* " + message + "\n";
m = m + "*\n";
m = m + "************** G U B E D *************************\n";
Packages.java.lang.System.out.println(m);
}


2012-06-11 11:51:57,094 INFO [STDOUT] (pool-13-thread-1) 2324391575
[pool-13-thread-1] ERROR com.novell.soa.af.impl.LogEvent -
[Workflow_Error] Initiated by cn=admin,o=CUST, Error Message:
org.apache.xerces.dom.DeferredElementNSImpl cannot be cast to
java.lang.String, Process ID: dfc3b2b7e3b34cd5ad03403ee99f47ae, Process
Name:
CN=LocationManualTask,CN=RequestDefs,CN=AppConfig, CN=UserApplication,CN=DirXML-DriverSet,O=CUST:62,
Activity: Activity6, Recipient: CN=BLB2950,OU=Internal ACME,O=CUST


--
Robert Rawson
Subject Area Master - Identity and Access Management
------------------------------------------------------------------------
rrawson's Profile: http://forums.novell.com/member.php?userid=4898
View this thread: http://forums.novell.com/showthread.php?t=456765