Tuesday Apr 08, 2014

Send Notification With Oracle Identity Manager API

Information about events occurring in Oracle Identity Manager are required to be sent to various users, such as requesters, beneficiaries, or administrators. This information about events is sent by using the notification service in the form of notification e-mail messages. The notification service allows you to perform all notification-related operations in Oracle Identity Manager.

A notification template is used to send notifications. These templates contain variables that refer to available data to provide more context to the notifications. The channel through which a notification is sent is known as the notification provider. Examples of such channels are e-mail, Instant Messaging (IM), Short Message Service (SMS), and voice. To use these notification providers, Oracle Identity Manager uses Oracle User Messaging Service (UMS).

In some case, you need a custom notificaion process such as you can send notification after Active Directory Create User. I want to explain how you can send a notification any time with oim api.

1-) Create a notification template from Oracle Identity Manager Administration Console.

oim notification

2-) Develop send notification adapter code. (Add your classpath: oimclient.jar)

  private NotificationService notificationService;

  public NotificationService getNotificationService()


    if (this.notificationService == null) {

      this.notificationService = ((NotificationService)Platform.getService(NotificationService.class));


    return this.notificationService;


  public void sendNotification(String receiverUserId, String templateName, HashMap<String, Object> templateParams)

    throws EventException, UnresolvedNotificationDataException, TemplateNotFoundException, MultipleTemplateException, NotificationResolverNotFoundException, UserDetailsNotFoundException, NotificationException


    NotificationEvent event = new NotificationEvent();

    event.setUserIds(receiverUserId); // set OIM User Login parameter

    event.setTemplateName(templateName); // set OIM Notification template name. 


    event.setParams(templateParams); // it's used for set some parameters in template.

    getNotificationService().notify(event); // send notification


Template params use for send some dynamic variable in notificiation template. if you want to send information such as user login,password etc in notification, first you have to add variable with "$" character in notification template ($userLoginId) then set this variable with a HashMap in code.

3-) Create a process task adapter from design console and assign it after "AD User" Process Form, "Create User" task ,"SUCCESS" response. 

Mustafa Kaya is a Senior Consultant in Oracle Fusion Middleware Team, living in Istanbul. Before coming to Oracle, he worked in teams developing web applications and backend services at a telco company. He is a Java technology enthusiast, software engineer and addicted to learn new technologies,develop new ideas.

Follow Mustafa on Twitter,Connect on LinkedIn, and visit his site for Oracle Fusion Middleware related tips.

Friday Sep 13, 2013

Inside the OOW Session: Simplify Cloud Integration

Authors: Rajesh Raheja, Senior Director, Applications Development, Oracle and Vikas Anand, Senior Director, Product Management, Oracle

CON9447: Real-World Cloud Integration Simplified with Oracle SOA Suite
Wednesday, September 25, 10:15 a.m. - 11:15 a.m.
Moscone West - 2014

It may seem a contradiction of terms, but while the cloud makes applications easier to adopt and consume, integrating those same SaaS applications with on-premise actually gets more complex. This is due to a variety of factors dealing with connectivity, session management, credential management, error handling, and use of anti-patterns. The complexity also usually creeps in stealth mode, with seemingly simple observations ("it's just a web service/REST API") turning out to be realization on the true nature of hybrid cloud integrations that typically include use of the right patterns for connectivity, flexibility, security, manageability and scalability.

Come join us in this session to learn more about these challenges and the patterns/anti-patterns. We will also discuss some customer use cases who have successfully adopted Oracle SOA Suite for their hybrid cloud integration needs, and show case how to simplify such integrations with new features such as cloud adapters to popular SaaS applications. We will demo the classical cloud - on-premise use case during this session.

For more information on what we have lined up for you for SOA and AppAdvantage (the aggregated value of using Oracle Fusion Middleware technologies with Oracle Applications to enable such things as cloud and on-premise integration), check out Focus on SOA and Focus on AppAdvantage. We recommend you bookmark these links.


Get the latest on all things Middleware. Join Oracle's Middleware Community today.

Find Us on facebook Follow us on twitter Catch Us on YouTube 


« April 2014