From the Add an Adapter Factory Task window toolbar, click Save. The error From this windows toolbar, click Close.

Developing Adapters 2-31 12. Optional. Repeat Steps 3-10 to create additional error handler tasks for the adapter. 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.

13. 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.8.9 Creating a Logic Task

While defining the adapter, you can add conditional statements to the adapter to control its logic flow. These conditional statements are known as logic tasks. For example, you can create a logic task that will trigger an action if the length of a User ID is greater than 10 characters. To create a logic task:

1. Select the adapter to which you wish to add a logic task for example, the Check

the Solaris User ID adapter.

2. Click the Adapter Tasks tab.

3. Click Add. The Adapter Task Selection window is displayed.

4. Select the Logic Task option.

5. From the display area, select the type of logic task you want to create. Then, click

Continue . To see what happens when you select a particular conditional statement, refer to Table 2–6 . See Also: Creating an Error Message on page 13-19 for information about creating error messages by using the Error Message Definition form Note: If you select a conditional expression, and click Continue, one of the following actions occurs: Oracle Identity Manager adds the conditional statement to the adapter directly; or A secondary window is displayed, containing fields about the conditional expression that you can configure. Table 2–6 Actions Resulting from Particular Conditional Statements Conditional Statement Statement Is Added to the Adapter Directly Secondary Window Appears FOR X WHILE X IF X ELSE X ELSE IF X 2-32 Oracle Fusion Middleware Developers Guide for Oracle Identity Manager Table 2–7 explains the various regions of the Add Adapter Factory Logic Task Parameters window: For the FOR conditional expression, use Table 2–8 to understand the various regions of this Add Adapter Factory Logic Task Parameters window. 6. Set the parameters for your conditional expression. This logic task will check to see if the length of the User ID is greater than 10 characters.

7. From the Add Adapter Factory Logic Task Parameters window toolbar, click Save.

The logic task you created is stored in the Oracle Identity Manager database. BREAK X RETURN X CONTINUE X Table 2–7 Regions of the Add Adapter Factory Logic Task Window Name Description Operand Type These combo boxes contain types of operands, such as adapter tasks and adapter variables. Comparator Combo Box From this combo box, you can set the relationship between two operands for example, , =, . Operand Qualifier These combo boxes contain the qualifiers for the operands. Literal Text Box When you select the Literal operand type, enter the specific literal into this field. Note: By selecting the FOR conditional statement, an Add Adapter Factory Logic Task Parameters window is displayed. However, it contains different text and combo boxes. Table 2–8 Add Adapter Factory Logic Task Parameters for FOR Conditional Statement Name Description Operand Type These combo boxes contain types of operands, such as adapter tasks and adapter variables. Comparator Combo Box From this combo box, you can set the relationship between two operands for example, , =, . Operand Qualifier These combo boxes contain the qualifiers for the operands. Increment Combo Box Within this area, you can set whether the initial value will increase or decrease, and by how much. Note: If you select the ELSE, BREAK, RETURN, or CONTINUE conditional expressions, proceed to Step 8. Table 2–6 Cont. Actions Resulting from Particular Conditional Statements Conditional Statement Statement Is Added to the Adapter Directly Secondary Window Appears