Identity Manager Roles Based Provisioning Module Version 4.0.1 Patch B
Build Revision 37827
Linux X86_64 (SLES 11)
Firefox 15.0.1

I am struggling with something that should be simple. I have an inline
global script containing the following functions:

function role2DN(CN,roleDN,driverDN)
{
var r = "CN=" + CN + "," + roleDN + "," + driverDN;
msg("role2DN()=" + r);
return r;
}

function msg(m)
{
java.lang.System.out.println('== trace ==> ' + m);
}


When I test this in Designer in the immediate window, the role2DN()
works as expected.

I call this from a mapping activity as follows:

msg("Here come the values:");
msg(flowdata.get("start/approvers/managerial/primary"));
msg(GCV.get("acme.role.dn"));
msg(GCV.get("acme.userapp.dn.ldap"));
msg("Here comes the inexplicable failure:");
role2DN(flowdata.get("start/approvers/managerial/primary"),GCV.get("acme.role.dn"),GCV.get("acme.us erapp.dn.ldap"));

Syntax tests fine here. When I test it within my PRD, the msg() function
works, the role2DN function fails. Here's the trace:

2012-10-23 12:47:46,755 INFO [STDOUT] (pool-13-thread-1) INFO [RBPM]
[com.novell.soa.af.impl.LogEvent:logAFEvent
] [Workflow_Forwarded] Initiated by System, Process ID:
1be4de7d349240d7a7a93820b819da36, Process Name: cn=acme-Acc
ess-Request-Form,cn=RequestDefs,cn=AppConfig,cn=UserApplicatio n,cn=DirXML-DriverSet,o=CUST:3031,
Activity: Select_
Approvers, Recipient: cn=admin,o=CUST
2012-10-23 12:47:46,793 INFO [STDOUT] (pool-13-thread-1) 2270779861
[pool-13-thread-1] INFO com.novell.soa.af.imp
l.LogEvent - [Workflow_Forwarded] Initiated by System, Process ID:
1be4de7d349240d7a7a93820b819da36, Process Name
:
cn=acme-Access-Request-Form,cn=RequestDefs,cn=AppConfig,cn=UserApplicatio n,cn=DirXML-DriverSet,o=CUST:3031,
Activ
ity: Select_Approvers, Recipient: cn=admin,o=CUST
2012-10-23 12:47:46,802 INFO [STDOUT] (pool-13-thread-1) == trace ==>
Here come the values:
2012-10-23 12:47:46,802 INFO [STDOUT] (pool-13-thread-1) == trace ==>
Plant Sales Manager - Baltimore
2012-10-23 12:47:46,877 INFO [STDOUT] (pool-13-thread-1) == trace ==>
CN=Level30,CN=RoleDefs,CN=RoleConfig,CN=App
Config
2012-10-23 12:47:46,958 INFO [STDOUT] (pool-13-thread-1) == trace ==>
CN=UserApplication,CN=DirXML-DriverSet,O=CU
ST
2012-10-23 12:47:46,958 INFO [STDOUT] (pool-13-thread-1) == trace ==>
Here comes the inexplicable failure:
2012-10-23 12:47:47,064 INFO [STDOUT] (pool-13-thread-1) ERROR [RBPM]
[com.novell.soa.af.impl.LogEvent:logError]
[Workflow_Error] Initiated by cn=admin,o=CUST, Error Message: Dataitem
[MAP0] with expression [msg("Here come the
values:");
msg(flowdata.get("start/approvers/managerial/primary"));
msg(GCV.get("acme.role.dn"));
msg(GCV.get("acme.userapp.dn.ldap"));
msg("Here comes the inexplicable failure:");
role2DN(flowdata.get("start/approvers/managerial/primary"),GCV.get("acme.role.dn"),GCV.get("acme.us erapp.dn.ldap"));
] failed to evaluate., Process ID: 1be4de7d349240d7a7a93820b819da36,
Process Name: cn=acme-Access-Request-Form,cn=R
equestDefs,cn=AppConfig,cn=UserApplication,cn=DirX ML-DriverSet,o=CUST:3031,
Activity: roleDNs, Recipient: cn=admin
,o=CUST
2012-10-23 12:47:47,101 INFO [STDOUT] (pool-13-thread-1) 2270780170
[pool-13-thread-1] ERROR com.novell.soa.af.im
pl.LogEvent - [Workflow_Error] Initiated by cn=admin,o=CUST, Error
Message: Dataitem [MAP0] with expression [msg(
"Here come the values:");
msg(flowdata.get("start/approvers/managerial/primary"));
msg(GCV.get("acme.role.dn"));
msg(GCV.get("acme.userapp.dn.ldap"));
msg("Here comes the inexplicable failure:");
role2DN(flowdata.get("start/approvers/managerial/primary"),GCV.get("acme.role.dn"),GCV.get("acme.us erapp.dn.ldap"));
] failed to evaluate., Process ID: 1be4de7d349240d7a7a93820b819da36,
Process Name: cn=acme-Access-Request-Form,cn=R
equestDefs,cn=AppConfig,cn=UserApplication,cn=DirX ML-DriverSet,o=CUST:3031,
Activity: roleDNs, Recipient: cn=admin
,o=CUST


--
rrawson
------------------------------------------------------------------------
rrawson's Profile: https://forums.netiq.com/member.php?userid=403
View this thread: https://forums.netiq.com/showthread.php?t=45016