Request Approval using OIM API
Hi all
Which API I need to use to approve a resouce request using OIM API?
I have tried with the following:
tcReqOp.setRequestResponse(85, 1 , "java.lang.String psResponse");
i do not know what to pass in place of java.lang.String psResponse.
I aslo tried passing "C","Completed"
can anyone correct what I am doing?
Thank u
sas
I assume you want to run a scheduled task for this. Try this approach. Run this query to retrieve specific approval tasks that are in a pending state:
select oti.sch_key, mil.mil_name, to_char(oti.oti_update, 'dd-mon-yyyy hh24:mi:ss')
from oti, mil, obj, pkg, orc, sch
where oti.mil_key=mil.mil_key
and oti.pkg_key=pkg.pkg_key
and pkg.obj_key=obj.obj_key
and oti.orc_key=orc.orc_key
and oti.sch_key=sch.sch_key
and oti.sch_status='P'
and obj.obj_name='Test Object'
and pkg.pkg_type='Approval'
You can modify the obj.obj_name or remove, or do any changes you want. When you grab the time of the oti.oti_update, compare it against the sysdate to determine the time difference. If the update did not occur within that time, use this code:
provIntf = (tcProvisioningOperationsIntf)getUtilityOps("Thor.API.Operations.tcProvisioningOperationsIntf");
Hashtable taskHash = new Hashtable();
taskHash.put("Process Instance.Task Details.Data", "<Insert Response Value Here>");
provIntf.updateTask(key, taskHash) ; //---> Key is the same as the oti.sch_key field
I have not tried this, but give it a shot.
-Kevin
Similar Messages
-
Raising Request using OIM ApI's in oim 11g R2
Hi all
I trying to raise a request using OIM API in R2. I have written a sample code and it is throwing me the below error....
Exception in thread "main" java.lang.NullPointerException
* at oracle.iam.ui.custom.updateuser.<init>(updateuser.java:76)*
* at oracle.iam.ui.custom.updateuser.main(updateuser.java:118)*
Please take a look at my code....
RequestEntityAttribute rea = null;
rea.setName("Modify User Profile");//This is the place where i am getting the error...
System.out.println("I am Here3");
rea.setAction(RequestEntityAttribute.ACTION.Modify);
List<RequestEntityAttribute> lrea = new ArrayList<RequestEntityAttribute>();
lrea.add(rea);
RequestEntity re = null;
re.setEntityData(lrea);
List<RequestEntity> reqentity = new ArrayList<RequestEntity>();
reqentity.add(re);
RequestData requestData = null;
requestData.setJustification("I need this Role");
requestData.setTargetEntities(reqentity);
String str = null;
try {
str = _service.submitRequest(requestData);
} catch (InvalidRequestException e) {
} catch (InvalidRequestDataException e) {
} catch (RequestServiceException e) {
} catch (BulkBeneficiariesAddException e) {
} catch (BulkEntitiesAddException e) {
Thanks in Advancelook at below link
Creating a Request via OIM 11g API
http://www.pathmaker-group.com/querying-oracle-iam-requests/ -
Creating self registration request using OIM API
Hi guys,
When we try to create a self regisrtation request using OIM API , we ge the following exception:
We get this error when we set the following in Design console.
Does user have to provide challenge information during registration = FALSE
and passed an blank object in place of challenge question parameter in createSelfRegistrationRequest method in tcUtilityBaseClass.
19:22:17,218 ERROR [REQUESTS] Error: Failed to save REQ_CONSOLIDATED_DATA_VALUE
data for Create Entity.
java.lang.NullPointerException
at org.apache.xml.serializer.TreeWalker.dispatachChars(TreeWalker.java:2
44)
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:414)
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143)
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:389)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.convertNodeToXML
(Unknown Source)
at com.thortech.xl.dataobj.util.RequestDataConsolidator.addUser(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRequestForCreateEntity(Unkno
wn Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.dataobj.tcDataBase.createRegistrationRequest(Unknown
Source)
at com.thortech.xl.ejb.beansimpl.tcUnauthenticatedOperationsBean.createR
egistrationRequest(Unknown Source)
at com.thortech.xl.ejb.beans.tcUnauthenticatedOperationsSession.createRe
gistrationRequest(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(S
tatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invo
ke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Stat
elessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidation
Interceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInte
rceptor.java:121)
How do we create a self registration request , using OIM API , with and without challenge questions?Well try this piece of code. This might be similar to yours but it worked perfectly for me. For you the error might be the attribute names which you are passing, it should be the one dfined in the FormMetaData xml as below.
import Thor.API.tcUtilityFactory;
// define you class below
ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = config.getAllSettings();
Hashtable quesAns = new Hashtable();
HashMap user = new HashMap();
user.put("Users.User ID", "SelfTesting");
user.put("Users.First Name", "SelfTesting");
user.put("Users.Last Name", "SelfTesting");
user.put("Users.Email", "[email protected]");
user.put("Users.Password", "SelfTesting");
user.put("ConfirmPassword", "SelfTesting");
tcUtilityFactory.createRegistrationRequest(env, user, quesAns);
And for the query of challenge QnA, these are the following combinations possible:
1) Property Does user have to provide challenge information during registration set to TRUE
- During self-registration from web console, it will show you Challenge Questions section on the right. If you do not select any questions, it will thow you an error there itself.
- Doing it from API will create no difference(even if you pass a blank HashTable). The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
2) Property Does user have to provide challenge information during registration set to FALSE
- During self-registration from web console, it doesn't show you Challenge Questions section on the right. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
- Doing it from API, you will have to pass a blank HashTable as in above code. The request will be created successfully and on completion when the user tries to login, it will ask for Security QnA.
Hope it works.
Thanks
Sunny -
Hi
can anyone help me in creatig a form and assigning it to a resource object.
please tell what all should i mention in the map which is to be passed to createForm() method.
Thank youHi all
what attributes i need to to map to create a from using OIM API
createForm Method?
I have tried with this but did not work:The form is getting created , i.e I am seeing an entry in DB.
At the same time I am aslo getting an exception which is whown below:
formMap.put("Structure Utility.Table Name", "SAM");
formMap.put("Structure Utility.Description", "TESTING API USAGE FOR FORM");
The Exceptions I get are :
Thor.API.Exceptions.tcInvalidNameException
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beansimpl.tcFormDefinitionOperationsBean.createForm(Unknown Source)
at com.thortech.xl.ejb.beans.tcFormDefinitionOperationsSession.createForm(Unknown Source)
09:05:13,772 ERROR [DATABASE] Class/Method: tcDataBase/writeStatement encounter
some problems: ORA-02089: COMMIT is not allowed in a subordinate session
java.sql.SQLException: ORA-02089: COMMIT is not allowed in a subordinate session
09:05:13,819 ERROR [ADAPTERS] Event: Adding Columns to SDC. has encountered an error.
09:05:13,819 ERROR [SERVER] Class/Method: tcDataObj/runEvent Error :EVT Fatal Rejection Occured
09:05:13,819 ERROR [APIS] Class/Method: tcFormDefinitionOperationsBean/createForm encounter some problems: maoErrors:Error Adding Column.
How can i resolve this?
When and where can I view the form that I have created?
Thank you -
I need to use OIM APIs from a third party web application.
I would like to know, would it be possible as our OIM server would be at a different m/c then the client web application.
So how would the settings be done in this case, as we set some system variables in the code for accessing the OIM APIs which include mentioning the path of Xellerate folder.
Kindly guide.I have gone through this link, and have used OIM APIs earlier, but in that case both my code and the OIM server were running on the same m/c.
But now its a third party web app which wants to call OIM APIs, hence I would like to knw, how d following settings would be done.
System.setProperty("XL.HomeDir", "D:/NewOIM/xellerate");
System.setProperty("java.security.policy", "D:/NewOIM/xellerate/config/xl.policy");
System.setProperty("java.security.auth.login.config", "D:/NewOIM/xellerate/config/authwl.conf");
System.setProperty("log4j.configuration", "D:/NewOIM/xellerate/config/log.properties");
System.setProperty("java.naming.provider.url", "t3://blrkec87910d:7001");
As uptil now I was giving the local location of these folders.
But now how would I give it? -
Hi All
First can we use OIM API from a PC where OIM Server/Design console is not installed?If so, how?
I have server running in a different PC in the same network.How do I connect from my PC to use OIM API.
Thank u
sasIt shouldn't matter whether you are invoking OIM APIs from standalone Java app or WebApp as long as you are able to create an instance of tcUtilityFactory. Once obtained the process remains same.
But if you are invoking APIs from JSP that is custom built but within same xlWebApp, then it gets trivial.
Thanks,
Aman -
Provisioning OIM user using OIM APIS
Hi All,
Could anyone help me out on how to provision a User using OIM APIS.
Thanks and Regards,
Vaasu.public class GetGroups {
tcUtilityFactory utilFactory = null;
tcSignatureMessage moSignature = null;
tcUserOperationsIntf moUserUtility = null;
tcResultSet userResultSet,userSet = null;
ConfigurationClient.ComplexSetting myConfig = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = myConfig.getAllSettings();
Map v = new HashMap();
public void UserGroups(String userid) {
try {
System.out.println(" I am in TRY");
moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
utilFactory = new tcUtilityFactory(env, moSignature);
moUserUtility =
(tcUserOperationsIntf) utilFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
v.put("Users.User ID", userid);
userSet = moUserUtility.findAllUsers(v);
long user_key = userSet.getLongValue("Users.Key");
System.out.println( " Group Name " + grpName );
} catch(Exception e){
e.getMessage();
Like that
moobjIntf =
*(tcObjectOperationsIntf) utilFactory.getUtility("Thor.API.Operations.tcObjectOperationsIntf");*
Map objmap =new HashMap(0;
objmap.put("Objects.Name", "AD User") \\ just hardcoding this AD User you can pass it as variable also
tcResultSet moResultSet = moobjIntf.findObjects(objmap);
long obj_key = moResultSet.getLongValue("Objects.Key"); -
How to install OID connector using OIM API in 11g?
Hi All,
We are using OID connector in OIM 11g environment. It is a simple process to install OID connector by unzipping the connector zip file to ConnectorDefaultDirectory and goto Admin console and load the connector.
However, we are looking for API methods to simulate "load the connector " step in GUI.
Please help.
Thanks
Mahendra.Hey Mahendra,
I am not aware of this API to do the 'Deployment Manager' load task. But III try to help you using another way:
1-You can use ICF API to do this task(creating it specifically to OID). Using ICF: http://www.groenenberg.nu/Oracle_Doc/AS_11.1.1.5/doc.1111/e14309/icf.htm#BABFDJHJ
2- And following this example that my buddy did for Open DS: http://itnaf.org/2011/12/30/developing-icf-connectors/
Another helpful doc: http://docs.oracle.com/cd/E14571_01/doc.1111/e14309.pdf
I hope this helps,
Thiago Leoncio. -
OIM Client application development using OIM API, when user password is not available
I am developing a cleint application for OIM. The client application is a set of services, running on a separate server from where OIM is running.
The OIM version used is 11gR2.
As I look into the oimClient object, the login method takes username and password. As my application is in an SSO environment, I do not have the password for the user, and just have the user's login ID.
If I am correct, the tcUtilityFactory allowed a digital signature option, to support scenarios like the above.
Question is, does oimClient support similar functionality? I did not find any examples in the Oracle documentation.
I will appreciate if someone can confirm a similar usage and provide me some sample code and configuration details.
Thanks.
-subrataCheck: http://www.ateam-oracle.com/authenticating-oim-apis-without-end-users-password/
-Bikash -
Custom Webservice Using OIM APIs
Hi..
How can we create and publish a custom webservice from OIM APIs??
OOTB SPML Webservice does not support all my requirements.
Thanks...The OOTB Web services are mostly asynchronous, so its not mostly suitable for our synchronous activity in OIM. like create,update,enable,disable etc
So in order to develop the webservices...
first of all list down all the methods which u need to publish.
Write Java code for each methods..
after that publish all methods as Webservices (JAX-WS) on Weblogic server where OIM is running.
After that you can access your custom webservices of OIM.
Regards,
J -
Create new schedule task using OIM API
Hello,
Steps for setting up eclipse :
1)Create a new JAVA project.
2)Right click on your newly created JAVA project & select properties.
3)In Properties window select JavaBuildPath & select libraries tab.
4)Click on AddExternalJar's button & add jar files from lib,ext folders of OIM client installation.
5)Click OK.
CODE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<package oimscheduler;
import java.util.HashMap;
import java.util.Hashtable;
import javax.naming.Context;
import Thor.API.Operations.tcUserOperationsIntf;
import Thor.API.Exceptions.tcAPIException;
import Thor.API.Exceptions.tcChallengeNotSetException;
import Thor.API.Exceptions.tcLoginAttemptsExceededException;
import Thor.API.Exceptions.tcPasswordResetAttemptsExceededException;
import Thor.API.Exceptions.tcUserAccountDisabledException;
import Thor.API.Exceptions.tcUserAccountInvalidException;
import Thor.API.Exceptions.tcUserAlreadyLoggedInException;
import Thor.API.tcUtilityFactory;
import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
import com.thortech.xl.util.config.ConfigurationClient;
public class Scheduler extends SchedulerBaseTask
tcUtilityFactory ioUtilityFactory = null;
@Override
protected void execute()
try
System.out.println("Executing Scheduler.....");
createConnection();
createUser();
System.out.println("Back In execute fn !!!");
catch(Exception e)
System.out.println("Error In execute : "+e.toString());
public void createConnection()
try
System.setProperty("XL.HomeDir","D:\\Oracle\\OIM\\xellerate");
System.setProperty("java.security.policy","D:\\Oracle\\OIM\\xellerate\\config\\xl.policy");
System.setProperty("java.security.auth.login.config","D:\\Oracle\\OIM\\xellerate\\config\\authwl.conf");
System.setProperty("java.naming.provider.url","t3://localhost:7001 ");
System.out.println("Setting Configurations .....");
System.out.println("Starting .....");
ConfigurationClient.ComplexSetting config =
ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
System.out.println("Login...");
Hashtable env = config.getAllSettings();
env.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
env.put("java.naming.provider.url","t3://localhost:7001");
ioUtilityFactory = new tcUtilityFactory(env,"xelsysadm","abcd1234");
catch(tcAPIException ae)
System.out.println("Error In createConnection:tcAPIException "+ae.toString());
catch(tcChallengeNotSetException cnse)
System.out.println("Error In createConnection:tcChallengeNotSetException "+cnse.toString());
catch(tcLoginAttemptsExceededException laee)
System.out.println("Error In createConnection:tcLoginAttemptsExceededException "+laee.toString());
catch(tcPasswordResetAttemptsExceededException praee)
System.out.println("Error In createConnection:tcPasswordResetAttemptsExceededException "+praee.toString());
catch(tcUserAccountDisabledException uade)
System.out.println("Error In createConnection:tcUserAccountDisabledException "+uade.toString());
catch(tcUserAccountInvalidException uaie)
System.out.println("Error In createConnection:tcUserAccountInvalidException "+uaie.toString());
catch(tcUserAlreadyLoggedInException uale)
System.out.println("Error In createConnection:tcUserAlreadyLoggedInException "+uale.toString());
catch(Exception e)
System.out.println("Error In createConnection:Exception "+e.toString());
public void createUser()
System.out.println("<<< In createUser Fn >>>");
try
tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
HashMap user = new HashMap();
user.put("Users.User ID","OIM-API-SCH");
user.put("Users.First Name","Oracle-SCH");
user.put("Users.Middle Name","JAVA-SCH");
user.put("Users.Last Name","SUN-SCH");
user.put("Organizations.Key","1");
user.put("Users.Role","Full-Time");
user.put("Users.Xellerate Type","End-User");
user.put("Users.Password","password");
long l = moUserUtility.createUser(user);
System.out.println("CreatingUser Done.....");
catch(tcAPIException ae)
System.out.println("Error In createUser:tcAPIException "+ae.toString());
catch(Exception e)
System.out.println("Error In createUser:Exception "+e.toString());
After writing above code ,we have to create jar file.
Steps To Be Follwed In OIM Design Console
1)Copy jar file in ScheduleTask folder of your OIM server installation.
2)Expand administration tree & select TaskScheduler.
3)Create new task & in class name textfield we have to mention package.classname & mention appropriate values in other textfields & execute it.
4)Check output.We need to override 2 methods while extending from SchedulerBaseTask i.e
init() :- this method is run before execute by the scheduler .
execute() :- is executed by the scheduler.
Revised code :-
package oimscheduler;
import java.util.HashMap;
import Thor.API.Operations.tcUserOperationsIntf;
import Thor.API.Exceptions.tcAPIException;
import com.thortech.xl.scheduler.tasks.SchedulerBaseTask;
public class Scheduler extends SchedulerBaseTask
tcUserOperationsIntf moUserUtility = null;
@Override
public void init()
try
System.out.println("In Init");
moUserUtility = (tcUserOperationsIntf) this.getUtility("Thor.API.Operations.tcUserOperationsIntf");
catch (tcAPIException e)
e.printStackTrace();
protected void execute()
try
System.out.println("Executing Scheduler.....");
createUser();
System.out.println("Back In execute fn !!!");
catch(Exception e)
System.out.println("Error In execute : "+e.toString());
public void createUser()
System.out.println("<<< In createUser Fn >>>");
try
HashMap user = new HashMap();
user.put("Users.User ID","OIM-API-SCH1");
user.put("Users.First Name","Oracle-SCH1");
user.put("Users.Middle Name","JAVA-SCH1");
user.put("Users.Last Name","SUN-SCH1");
user.put("Organizations.Key","1");
user.put("Users.Role","Full-Time");
user.put("Users.Xellerate Type","End-User");
user.put("Users.Password","password");
long l = moUserUtility.createUser(user);
System.out.println("CreatingUser Done.....");
catch(tcAPIException ae)
System.out.println("Error In createUser:tcAPIException "+ae.toString());
catch(Exception e)
System.out.println("Error In createUser:Exception "+e.toString());
Edited by: Rahul Shah on Jul 11, 2011 4:16 AM -
Issue while deploying code that uses OIM api: OIMClient
We are trying to deploy a war file with some java code that interfaces with OIM by using the OIMClient api. Note that we have all the spring jars needed and it works fine on Tomcat. Our production env is on weblogic, and when we deploy the war file on weblogic it deploys fine. But when we test some of the web pages, we get the following error:
]] Root cause of ServletException.
java.lang.NoClassDefFoundError: org/springframework/jndi/JndiTemplate
at oracle.iam.platform.OIMClient.<init>(OIMClient.java:83)
Truncated. see log file for complete stacktrace
>
The class file is available in a jar called spring-context with the same package structure: org.springframework.jndi.jnditemplate. I wonder why it cannot find the definition for that class. I also tried removing these jars from the war file and adding them to the domain's lib dir. I still end up with the same exception.
Appreciate all the help I can get.
Edited by: 958829 on Sep 12, 2012 11:01 PMGood one. I just threw every single spring jar the webapp needed into the domain's lib. I did not declare them as "provided" though. and it worked. I bet going into console/deployment and adding the jars individually would've worked too. Thanks mate. Cheers !
-
OIM11gr2 - How to get currently logged in user details using oim api
Hi All,
I have a requirement to retrieve currently logged in users profile in the process adapter.
I have tried with getSelfProfile in tcUserOperation and also ContextManager.getOIMUser API's however, in both the cases i am getting xelsysadm details only.
Also as know request details in Process task mapping doesnot work for OIM11g onwards (its returning column not found exception )
DOes any one has idea how to achieve this.
PS. - i am using platform to retrieve API's.
Thanks & Regards
Swati PandeyYou can get the logged in user name using the below java code:
ADFContext adfCtx = ADFContext.getCurrent();
SecurityContext secCntx = adfCtx.getSecurityContext();
String user = secCntx.getUserPrincipal().getName();
HTH -
Error -- Java code using OIM API to find no of users in OIM
Hi Experts,
I hav a requirement that I need to query OIM to find out the total no of active users in the system using a stand alone java program to determine some other process. So I have developed a simple java code but it fails in the below line
rset=userIntf.findAllUsers(map); -- It throws null pointer exception
I have tried with deleteUser() instead of findUsers() , still it throws the null pointer exception on the same line.I have checked the other posts in the forum but could not find out where is the mistake. Can u please suggest me??
Here is the code
System.setProperty("XL.HomeDir","D:/bea-oim/xellerate");
System.setProperty("java.security.auth.login.config","D:/bea-oim/xellerate/config/authwl.conf");
System.setProperty("java.security.policy","D:/bea-oim/xellerate/config/xl.policy");
System.setProperty("log4j.configuration","D:/bea-oim/xellerate/config/log.properties");
tcUtilityFactory utilityFactory = null;
tcUserOperationsIntf userIntf = null;
try
tcResultSet rset;
ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
final Hashtable env = config.getAllSettings();
tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm","PrivateKey");
utilityFactory = new tcUtilityFactory(env, moSignature);
userIntf=(tcUserOperationsIntf)utilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
HashMap map = new HashMap();
map.put("Users.Status","Active");
rset=userIntf.findAllUsers(map);
System.out.println(rset.getRowCount());
catch(NullPointerException ne)
System.out.println(ne.getMessage());
ne.printStackTrace();
catch(Exception e)
System.err.println(e.getMessage());
e.printStackTrace();
Thanks & Regards
INIYA* To change this template, choose Tools | Templates
* and open the template in the editor.
import java.util.HashMap;
import java.util.Properties;
import java.util.*;
import Thor.API.tcUtilityFactory;
import Thor.API.Operations.*;
import Thor.API.tcResultSet;
import com.thortech.xl.crypto.tcCryptoUtil;
import com.thortech.xl.util.config.ConfigurationClient;
* @author Rajiv
public class CreateBulkUsers {
public static void main(String args[])
System.setProperty("XL.HomeDir", "E:\\oim\\server\\xellerate");
System.setProperty("java.security.auth.login.config", "E:\\oim\\server\\xellerate\\config\\auth.conf");
System.setProperty("java.security.policy", "E:\\oim\\server\\xellerate\\config\\xl.policy");
tcUtilityFactory utilityFactory = null;
tcUserOperationsIntf userIntf = null;
try
com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
java.util.Hashtable env = config.getAllSettings();
com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
utilityFactory = new tcUtilityFactory(env, moSignature);
// System.out.println((new StringBuilder()).append("utilityFactory = ").append(utilityFactory).toString());
userIntf = (tcUserOperationsIntf)utilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
HashMap map = new HashMap();
map.put("Users.Status", "Active");
tcResultSet rset = userIntf.findAllUsers(map);
System.out.println(rset.getRowCount());
catch(NullPointerException ne)
System.out.println(ne.getMessage());
ne.printStackTrace();
catch(Exception e)
System.err.println(e.getMessage());
e.printStackTrace();
Include all the JARs to run this class from outside not only of OIm of JBoss or Weblogic also.
eg: jboss\client and jboss\lib -
Issue with request approval in OIM 11gR2
HI,
I have created an workflow so that when ever a user tries to provision an entitlement to a user then request should go the approver. Now whenever the request has been raised , workflow has been triggered and the approver approves the requet and the status of the request changes to approve. But even then the entitlement is not getting provisioned to the user. I am getting the below logs :
<Mar 20, 2013 5:10:09 AM PDT> <Error> <oracle.soa.bpel.engine.delivery> <BEA-000000> <Error: Fault not handled.
failure to handle a fault thrown from a scope, by any blocks in the scope chain.
This exception occurred because the fault thrown in the BPEL flow was not handled by any fault handlers and reached the top-level scope.
A top-level fault handler should be added to the flow to handle faults not caught from within the flow.
happened for conv_id = urn:E6A7D570915611E2BFA2613558FA7D90 and message guid = urn:E6A7D570915611E2BFA2613558FA7D90 and subscriberId = default/ApprovalWorkflowProj!3.0*soa_d071bc60-5d33-4a6d-a2f3-0a004bc66666/ApprovalProcess/20002-BpRcv1-BpSeq2.6-3, transaction will be rolled back>
<Mar 20, 2013 5:10:09 AM PDT> <Error> <oracle.soa.bpel.engine.dispatch> <BEA-000000> <failed to handle message
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): https://stgsso.a.b.c.com:443/workflowservice/CallbackService</summary>
,detail=<detail>Unable to access the following endpoint(s): https://stgsso.a.b.c.com:443/workflowservice/CallbackService</detail>
,code=<code>null</code>}
Please help me in resolving this issue.
Thanks,1. End user raising the request is able to view the process form, I need to restrict few attributes i.e. position and responsiblity should not be visible to end userEnd user will see Application Instance Form and you can customize the UI to hide attributes
2. Position and Responsibility should be provided by approver (this is specified in request data set of provision resource)
Make your Java Code/Beans/Expression to show/hide attributes conditionally.
3. As per Oracle document there is no request data set for PROVISION and MODIFY resource. What is the replacement for this?Application Instance Form
4. After Request is raised it has been assgined to xelsysadm, how do i control the approval ?Approval Policies
Maybe you are looking for
-
How can I change the arrangement of clips in an event?
Hello all, I would like to have the window of clips for my events to be oldest to newest and not newest first. I see where I can arrange the selection of Event either by newest first or last, but I see nowhere that I can do this for clips in an ev
-
ADF BC: create is very slow
Hi I have the following scenario: An ADF BC application against a Oracle10g DB, aprox 30.000 rows in the DB. The client is using uix. The server is a standalone OC4J on linux. It has 512M RAM. When I want to create a new record via the browser, it is
-
HT2589 Apple ID not recognised in App Store
My apple ID is registered to the UK. I can purchase books and music without any problem but I cannot upgrade any previously downloaded apps as I get a message saying my Apple ID is registered to the Emirati store. How can I resolve this. I have do
-
Cannot figure out why this is happening. It appears to be only shared contacts that his is happening with.
-
Shared Photo Stream Phone Storage
Hi, If I or a family member share a photo or video to a shared photo stream, is that going to take away storage space on my phone?