- package com.oimacademy.provision;
- import java.util.HashMap;
- import java.util.Map;
- import com.oimacademy.connection.Platform;
- import Thor.API.tcResultSet;
- import Thor.API.Exceptions.tcAPIException;
- import Thor.API.Exceptions.tcColumnNotFoundException;
- import Thor.API.Exceptions.tcUserNotFoundException;
- import Thor.API.Operations.tcUserOperationsIntf;
- public class GetProcessInstanceKey {
- public static void main(String[] args) throws tcAPIException, tcUserNotFoundException, tcColumnNotFoundException {
- tcUserOperationsIntf userOperationsIntf=Platform.getService(tcUserOperationsIntf.class);
- long userKey=1004L;
- Map<String,Long> resources= new HashMap<String,Long>();
- tcResultSet trs= userOperationsIntf.getObjects(userKey);
- if(trs != null)
- {
- int count=trs.getRowCount();
- for(int i=0;i<count;i++)
- {
- trs.goToRow(i);
- String objectName=trs.getStringValue("Objects.Name");
- String status=trs.getStringValue("Objects.Object Status.Status");
- if(status.equalsIgnoreCase("Provisioned") || status.equalsIgnoreCase("Enabled"))
- {
- resources.put(objectName,trs.getLongValue("Process Instance.Key"));
- }
- }
- }
- System.out.println("resources -> "+resources);
- }
- }
Oracle Identity Manager(OIM) is the Provisioning Solution from oracle. This page contains an index with references to all OIM related posts in the oracle identity manager Academy blog. The posts included herein are intended to provide oracle identity management customers and developers with technical information about best practices for implementing OIM based solutions.
OIM API - to Get Process Instance Key
Subscribe to:
Post Comments (Atom)
-
Connection Related API's : OIM DB Connection/ Data Source connection OIMClient API / OIMConnection API OIM Platform API to getSer...
-
Error : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.springframewor...
-
In this post, we set the middle name as “MiddleName” if user does not provide middle name during user create operation. Below are high...
No comments:
Post a Comment