Click Add. Creating Adapter Tasks

Developing Adapters 2-19 6. In the Task Name field, enter the name of the task you are creating, for example, Update Password .

7. Optional. To make your Java object reusable, select Persistent Instance, type the

name of the instance of this task in the text field located to the right of the check box.

8. Select the API Source. The JAR files appear, which Oracle Identity Manager

references from the JavaTasks subdirectory of the OIM_HOME directory path—for example, C:\oracle\Xellerate\JavaTasks. 9. Select the Application API. The class files, which belong to the JAR file you selected in the API Source, appear. 10. From the Constructors area, select the method to be used to initialize the Java class you selected. 11. From the Methods area, select the method that will be used with your Java task.

12. From the toolbar, click Save.

The information pertaining to the Java task is stored in the Oracle Identity Manager database. You can now access the parameters of your Java tasks constructors and methods. These parameters appear in the Application Method Parameters region of the Add an Adapter Factory Task window. 13. To display the Java class constructors and methods for which you must set mappings, click the plus icons displayed to the left of the Constructor and Method icons. 14. Select the parameter of the constructor or method for which you must set a mapping. 15. In the Description text area, you can enter a description for this mapping. Application Method Parameters This area contains the parameters of the selected constructor and method. These parameters are mapped to the adapter variables and Oracle Identity Manager components. Caution: Ensure that name of the instance contains no spaces. Note: To reference a session with the target resource multiple times during the life of the adapter, and not just once, select Persistent Instance . Tip: By setting the Java object to be persistent, the next time you create a Java object, it appears in the Persistent Instance list of the Object Instance Selection window. In addition, you do not have to map the constructor to all adapter tasks of the same Java object. See Also: Section 2.3.1, Configuring the Adapter Environment for instructions on how to enable Oracle Identity Manager to use third-party JAR files with a Java task Table 2–3 Cont. Regions of the Add an Adapter Factory Task Window Name Description