Select the task that must be placed inside of another task, and click the Right

Developing Adapters 2-35 Select the task that no longer be nested inside of another task, and click the Left arrow button. The highlighted task will not be nested inside of the task that is displayed above it.

5. On the toolbar, click Save.

The order and nesting of the adapters tasks is stored in the Oracle Identity Manager database. If the adapter is logically complete and all variables on the adapter tasks are mapped, you can compile it to use with a process task or form field.

6. To compile the adapter, click Build.

The text in the Compile Status field changes from Recompile to OK. This indicates that Oracle Identity Manager compiled the adapter and did not find any errors. You can now attach the adapter to a process task or form field.

2.11 Deleting Adapter Tasks

When an adapter task is no longer necessary for the adapter to run, you must remove it from the adapter. To delete an adapter task: 1. Select the adapter that contains the task you wish to remove for example, the Update Solaris User Group adapter.

2. Click the Adapter Tasks tab.

3. Select the task that you want to remove for example, the CONTINUE logic task.

4. Click Delete.

The selected task is deleted and disappears from the child table.

5. On the toolbar, click Save.

6. Recompile the adapter.

2.12 Working with Responses

Adapters can have different outcomes, called responses. Based on these responses, adapters can trigger other process tasks. For example, if the adapter returns a True response, the process tasks status can be set automatically to Completed. However, if the adapter returns a False response, the process tasks status can be set automatically to Rejected, and another process task can be triggered. These responses can be added, modified, or removed on the Responses tab of the Adapter Factory form. The following procedures will show you how to create, modify, and delete responses. Caution: If you see CODE GEN ERROR in the Compile Status field, Oracle Identity Manager found errors while compiling the adapter. Rectify the errors, if necessary re-do the adapter task modifications, and compile the adapter again. Caution: While deleting adapter tasks, ensure that the logic of the adapter is consistent and maintained. 2-36 Oracle Fusion Middleware Developers Guide for Oracle Identity Manager

2.12.1 To Create a Response

1. Select the adapter to which you want to add responses for example, the Create

Solaris User adapter.

2. Click the Responses tab.

3. Click Add.

An empty row is inserted into the Responses tab. 4. Click the field that appears within the Code Name column. 5. Enter a code, which represents a response type that can be generated for example, True.

6. Click the field that appears within the Description column.

7. Enter a description for this response for example, The user was created successfully..

8. Double-click the field that appears within the Status column.

The Lookup popup window is displayed, containing the different status levels that you can associate with the response.

9. Click the desired status level for example, Completed C. Then, click OK.

The Lookup window disappears, and the Responses tab is active once again. 10. Create another response, by clicking the Add button, and entering False and The user was not created successfully. into the Code Name and Description fields, respectively. Then, access the Lookup window, and assign the Rejected R status level to this response.

11. On the toolbar, click Save.