Unable To Create Scheduled Task In OIM (Doc ID 1471850.1)

Last updated on NOVEMBER 08, 2016

Applies to:

Identity Manager - Version 11.1.1.5.0 and later
Information in this document applies to any platform.
**Checked for Relevance on 03-Jan-2014**

Goal

After creating a custom scheduled task, it is not possible to use it.

Here are the steps taken :

1) Refered to this oracle document while using OIM11.1.1.5:
    http://docs.oracle.com/cd/E23943_01/doc.1111/e14309/refsched.htm#BEIBAIDD

  but if one  using OIM11GR2PS3 then one can rather refer to following oracle document:

    https://docs.oracle.com/cd/E52734_01/oim/OMDEV/refsched.htm#OMDEV226

2) created a 'CustomDisableUsersBasedOnLastLogin.xml'

<scheduledTasks xmlns="http://xmlns.oracle.com/oim/scheduler">
<task>
<name>CustomDisableUsersBasedOnLastLogin</name>
<class>com.test.CustomDisableUsersBasedOnLastLogin</class>
<description>description of schedular</description>
<retry>5</retry>
</task>
</scheduledTasks>

3) Created plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<oimplugins xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<plugins pluginpoint="oracle.iam.scheduler.vo.TaskSupport">
<plugin pluginclass= "com.test.CustomDisableUsersBasedOnLastLogin"
version="1.0.1" name="CustomDisableUsersBasedOnLastLogin">
</plugin>
</plugins>
</oimplugins>


4) Created a class file 'CustomDisableUsersBasedOnLastLogin extends TaskSupport'
5) Created a jar of the class file
7) created a 'CustomDisableUsersBasedOnLastLogin.zip' containing
-lib /CustomDisableUsersBasedOnLastLogin.jar
-plugin.xml

8) Used plugin register utility to register 'CustomDisableUsersBasedOnLastLogin.zip'
9) Verified from OIM db plugins that the plugin has been registered
10) Uploaded the 'CustomDisableUsersBasedOnLastLogin.xml' to / in Metadata using weblogic import
11) Verfied the imported path in metadata '/customSchedular/disableUsers/CustomDisableUsersBasedOnLastLogin.xml'
12) Purged cache ALL
13) Restarted the OIM, SOA, WLS
14) Opened the admin console and created a new scheduled task 'CustomDisableUsersBasedOnLastLogin' while adding the task. not able to find our custom scheduler
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms