I have a PRD that calls the CreateRole Web Service.

This works in IDM 4 and 3.7 RBPM when I try Level 10 roles.

So I went and tried the same code on a Level 20 role. In RBPM 4.01 it
works fine.

In RBPM 3.7 (Different PRD, built using the 3.7 WSDL) level 10's work
fine. In fact I did a Level 10 (worked) then a Level 20, and it failed.

The error is kind of odd:

2012-01-31 16:07:09,459 INFO
[com.novell.soa.af.impl.activity.LogActivity] [User_Message] Initiated
by cn=idmprov,ou=associate,ou=people,o=acme, Process ID:
0a0d1e686e5d4701ae5c3dfb72fac071, Process Name: CN=Create
Role,CN=RequestDefs,CN=AppConfig,CN=RBAC-UserApplication,CN=IDM-IDVDriverSet,OU=idm,OU=services,o=acme:73,
Activity: Activity1, Recipient:
CN=IdmProv,OU=associate,OU=people,O=acme, Author: , Message: Test-Technical1
2012-01-31 16:07:19,680 DEBUG
[com.novell.soa.af.impl.core.DataItemEvaluator] evaluating to string:
flowdata.get('start/request_form/Description')
2012-01-31 16:07:19,680 DEBUG
[com.novell.soa.af.impl.core.DataItemEvaluator] result: Test-Technical1
2012-01-31 16:07:19,950 ERROR [com.novell.soa.af.impl.LogEvent]
[Workflow_Error] Initiated by cn=idmprov,ou=associate,ou=people,o=acme,
Error Message: org.hibernate.exception.ConstraintViolationExcepti on:
Could not execute JDBC batch update, Process ID:
0a0d1e686e5d4701ae5c3dfb72fac071, Process Name: CN=Create
Role,CN=RequestDefs,CN=AppConfig,CN=RBAC-UserApplication,CN=IDM-IDVDriverSet,OU=idm,OU=services,o=acme:73,
Activity: Activity1, Recipient: CN=IdmProv,OU=associate,OU=people,O=acme


Could not execute JDBC batch update?

This occurs before the Integration activity even renders the SOAP it is
about to send.

Here is a level 10 that worked a minute before the level 20 failed.

<createRoleInput>
<createRoleRequest>
<role>
<container>cn=AD</container>
<description>ADWorksite-WIC9</description>
<name>ADWorksite-WIC9</name>
<roleCategoryKeys>application</roleCategoryKeys>
<roleLevel>10</roleLevel>
<systemRole>false</systemRole>
</role>
</createRoleRequest>
</createRoleInput>

On a side note, Steve, is this your code, or something done elsewhere in
UA?

2012-01-31 17:46:18,377 INFO [STDOUT] (pool-14-thread-1) DEBUG [RBPM]
[com.novell.soa.af.impl.core.DataItemEvaluator:eval uateSource]
evaluating source expression: function roleName(nombre)
{
disaloud = new RegExp("[(\<|\>|\,|\;|\\|\"|\=|\/|\||\&|\*)]");
return nombre.replace(disaloud,"-");
}


The function names look like jokes my boss would write... But I wonder
if these are built into IDM4 RBPM and not 3.7?

Tried a role name without dashes or spaces, and no joy on 3.7 still...

Any thoughts?