Developing a Pre-populate and process task adapter in OIM 11G R2 PS3

Prepopulate adapter:

Step 1: class should have public method which returns some value

Example:
public class CommonName {
public String getCommonName(String firstName,String lastName){
return firstName+", "+lastName;
}
}

Build a Jar file by exporting the class using Eclipse and copy the jar to oim server location
/opt/apps/oracle/Oracle/Middleware/Oracle_IDM/server/JavaTasks
the above path varies project to project

Step 2:
Upload jar to server using command utility
Navigate to UploadJars.sh file path location(use locate -i UploadJars.sh)
Example Location:
/opt/apps/oracle/Oracle/Middleware/Oracle_IDM/server/bin

Run below command(Export paths if required)
./UploadJars.sh

Provide xelsysadm username and password

t3://HOSTNAME:14000

Select Jar type as JavaTasks(option 1)

Provide complete Jar path
example:
/opt/apps/oracle/Oracle/Middleware/Oracle_IDM/server/JavaTasks/CommonNameGenerator.jar

Do purge cache using below command

./PurgeCache.sh ALL


Step 3: Create Adapter using Adapter factory

Login to Design console and Navigate to Development Tools->Adapter Factory
Enter adapter name and descritpion
Select adapter type as Pre-populate Rule Generator and click on save(Process Task for process task adapter)
Navigate to Variable and add your variables if your code accepts any input variables



















Navigate to Adapter Tasks and create task
































Provide Task name, select API source as your jar file and select appropriate class and method and map the input variables
























and Click on Rebuild

Now your prepopulate adapter is ready to use

In the below section lets see how to use this adapter for prepopulating values to the form


Navigate to form designer and search for the form


















sometimes you may require to create new form version to modify the details

Click on save and do purge cache or restart the system.

We are done with prepopulate adapter development



Comments

  1. Hi Had written the same logic but getting an error server cannot load class while selecting API source as your jar file..any guess, why this error.

    ReplyDelete

Post a Comment

Popular posts from this blog

Rules in Sailpoint

Sailpoint Installation Steps (IdentityIQ 7.3 Installation in Windows Machine)

How to create provisioning plan in Sailpoint