Event Handler Handler deployment in OIM
Three ways to deploy the Event Handler Handler deployment in OIM. They are
The following tasks needs to be developed to deploy the Event Handler through OIM deployment manager. They are
2.1 Developing the Event Handler XML file
Sample Event Handler Xml File.
<?xml version = '1.0' encoding = 'UTF-8'?>
<xl-ddm-data version="2.0.1.0" user="XELSYSADM" database="jdbc:oracle:thin:@localhost:1521/oim" exported-date="1397256851696" description="EventHandler.xml">
<eventhandlers repo-type="MDS" name="/metadata/" mds-path="/metadata/" mds-file="EventHandlers.xml">
<completeXml>
<eventhandlers>
<eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
<action-handler class="test.eventhandlers.NamePreProcessEventHandlers" entity-type="User" operation="CREATE" name="NamePreProcessEventHandlers" stage="preprocess" order="FIRST" sync="TRUE"/>
<action-handler class="test.eventhandlers.NamePreProcessEventHandlers" entity-type="User" operation="MODIFY" name="NamePreProcessEventHandlers" stage="preprocess" order="LAST" sync="TRUE"/>
</eventhandlers>
</eventhandlers>
</completeXml>
</eventhandlers>
</xl-ddm-data>
In the above xml you can replace the following parameters according to your naming convention. They are
1. name="/metadata/". For example you want to store event handler in the metadata/EventHandler.xml in the MDS repository. You should specify the name="/metadata/".
2. mds-path="/metadata/". For example you want to store event handler in the metadata/EventHandler.xml in the MDS repository. You should specify the mds-path="/metadata/".
3. class="test.eventhandlers.NamePreProcessEventHandlers". Replace with your class name.
4. name="NamePreProcessEventHandlers". Replace with your name. Class Name and Name should be the same.
2.2 Deploy the Event Handler in OIM Deployment Manager
After creating the EventHandler.xml file and you need to deploy the event handler in OIM deployment manager as follows.
2.2.1 Login to the OIM Server.
2.2.2 Click Advaned --> Import Deployment Manager File -->Add File --> choose event handler xml file --> Import
Three ways to deploy the Event Handler Handler deployment in OIM. They are
1. OIM Utilities,
2. OIM Deployment Manager,
3. OIM API.
1. OIM Utilities,
2. OIM Deployment Manager
The following tasks needs to be developed to deploy the Event Handler through OIM deployment manager. They are
2.1 Developing the Event Handler XML file
Sample Event Handler Xml File.
<?xml version = '1.0' encoding = 'UTF-8'?>
<xl-ddm-data version="2.0.1.0" user="XELSYSADM" database="jdbc:oracle:thin:@localhost:1521/oim" exported-date="1397256851696" description="EventHandler.xml">
<eventhandlers repo-type="MDS" name="/metadata/" mds-path="/metadata/" mds-file="EventHandlers.xml">
<completeXml>
<eventhandlers>
<eventhandlers xmlns="http://www.oracle.com/schema/oim/platform/kernel" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.oracle.com/schema/oim/platform/kernel orchestration-handlers.xsd">
<action-handler class="test.eventhandlers.NamePreProcessEventHandlers" entity-type="User" operation="CREATE" name="NamePreProcessEventHandlers" stage="preprocess" order="FIRST" sync="TRUE"/>
<action-handler class="test.eventhandlers.NamePreProcessEventHandlers" entity-type="User" operation="MODIFY" name="NamePreProcessEventHandlers" stage="preprocess" order="LAST" sync="TRUE"/>
</eventhandlers>
</eventhandlers>
</completeXml>
</eventhandlers>
</xl-ddm-data>
In the above xml you can replace the following parameters according to your naming convention. They are
1. name="/metadata/". For example you want to store event handler in the metadata/EventHandler.xml in the MDS repository. You should specify the name="/metadata/".
2. mds-path="/metadata/". For example you want to store event handler in the metadata/EventHandler.xml in the MDS repository. You should specify the mds-path="/metadata/".
3. class="test.eventhandlers.NamePreProcessEventHandlers". Replace with your class name.
4. name="NamePreProcessEventHandlers". Replace with your name. Class Name and Name should be the same.
2.2 Deploy the Event Handler in OIM Deployment Manager
After creating the EventHandler.xml file and you need to deploy the event handler in OIM deployment manager as follows.
2.2.1 Login to the OIM Server.
2.2.2 Click Advaned --> Import Deployment Manager File -->Add File --> choose event handler xml file --> Import
No comments:
Post a Comment