How to find Object Instance.Key
Hi all, I have a problem. I have a workflow as: I am as being an administrator, request for a resource for a user. And then an approver approves it. But before he approves I want to see the object form prepopulated with target user's information. So that I wrote i java class and attah as process task adapter to update task of approval process of the resource. In code I will set the form values using setObjectFormData(long plObjectInstanceKey, java.util.Map phAttributeList) function of tcFormInstanceOperationsIntf. But ı don't know how to get plObjectInstancekey which is "Object Instance.Key". I tried to use getAssociatedUsers operation but it does not work since my resource is not provisioned to user yet. Any idea?
It's immediately available when you go to map the values on your adapter. It should be under Object Data and the available values from there.
-Kevin
Similar Messages
-
OIM10g fetch object instance key
Hi,
Please help me on how to get object instance key when input value is only a process instance key for a resource object.
Thanks,
RameshI did not test this code. Give a try and post ur results here.
input: ProcessInstanceKey
tcProvisioningOperationsIntf ProvUtility=(tcProvisioningOperationsIntf) utilFactory.getUtility ("Thor.API.Operations.tcProvisioningOperationsIntf");
tcUserOperationsIntf userOperations=(tcUserOperationsIntf) utilFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf");
tcResultSet procDetail=ProvUtility.getProcessDetail(ProcessInstanceKey);
long objInstanceLKey=0;
if (procDetail.getRowCount()>0)
procDetail.goToRow(0);
long taskInstanceKey=procDetail.getLongValue("Process Instance.Task Details.Key");
tcResultSet taskDetails = tcProvisioningOperationsIntf.getProvisioningTaskDetails(taskInstanceKey);
taskDetails.goToRow(0);
long userKey=taskDetails.getLongValue("Users.Key");
String objectName=taskDetails.getStringValue("Resource Objects.Name");
tcResultSet provisionedObjects = userOperations.getObjects(userKey);
for (int count = 0; count < provisionedObjects.getRowCount(); count++)
objResultSet.goToRow(count);
if (provisionedObjects.getStringValue("Objects.Name").equalsIgnoreCase(objectName))
objInstanceLKey=objResultSet.getLongValue("Users-Object Instance For User.Key")
System.out.println("Object Instance Key:"+objInstanceLKey);
Thanks,
Srini -
OIM - Task Assignment Adapter - How to get the object instance key?
Hello experts,
I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
Best Regards,
NittoTo retry a task that is in a rejected state, you use the SCH_KEY which is the task key. In OIM, all rejected tasks are listed in the OTI table. It contains all the important information about a rejected or pending task.
You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
-Kevin -
Hello,
Adobes Scripting Guide: JavaScript explains well(more or less) how to find text, greps and glyph. But lacking is how to find Object Styles. The Find/Change Dialog box in ID does have this option.
What I would like is a script that will find a style, then fill in the color of that style so that one can clearly see in a long document where the style was used. When there are only subtle differences between styles, this is helpful.
The first thing to do is to clear all the options and that is my first stumbling block. In the following code the first line works, clearing the find of any parameters. The second line does not work.
app.findObjectPreferences = NothingEnum.nothing;
app.findChangeObjectOptions = NothingEnum.nothing;
I also need to set the Search for Documents (not All Documents nor Selection) and to set the Type for All Frames.
The second obstacle is setting the Find so that it will find the object I am looking for. The code below does not work but I do not know why.
app.findObjectPreferences.getElements("Object Style 1");
Any help is appreciated.
TomYou need this:
app.findObjectPreferences = null;
app.findObjectPreferences.appliedObjectStyles = "Object Style 1";
found_objects = app.activeDocument.findObject();
Some things are different in scripting compared to the interface. For instance, the scope of the search in the interface is just "document" or "all documents", but in a script you can search a page, a spread, almost anything (I have to say that this is true for text and grep searches, I never tried it for objects). Finding frame types is different as well: there's no parameter for that I don't think. Instead, you have to find all frames that have a particular object style applied to them, then cycle through them checking their frame type; if the type matches your criteria, do what you want with it.
Peter -
How to find Object name for a object?
Hi Experts,
How to find Object name for a particular Object? Is there a Tcode for it?
__Like Object name for__
Material number - materialnr
Goods receipts / return - matbeleg
Accounting documents - rf_beleg
How to find Object name for other Objects? Is there a particular way?
Thanks & Regards
ChandanHi,
You can find objects in SNRO transaction.
In SNRO search by giving long text...
for eg., Service .. for service entry sheet. keep the first letter in capital letter only.
Thanks & Regards,
Anand. -
How to find bpel instance in 11g based on the index values
We have 10g BPEL process where we define 4 index values for all the instances. Whenever support request comes, we ask index values and based on that we search the process instance.
We have migrated this 10g bpel process to 11g now. How to find bpel instance in 11g based on the index values ???I have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???
-
How to find which instance in the RAC cluster the application is connected
How to find which instance in the RAC cluster the application is connected to ?
Raeeswell if you know the user through which your application is connected to instance, you can easily find out by querying gv$session view.
select inst_id,sid,serial#,program,username from gv$session where username is not null;
Thanks
Gaurav -
How to find the product key on a preinstalled version of Windows 8?
This is a similar qustion:
https://forums.lenovo.com/t5/Windows-8-and-8-1-Knowledge-Base/How-to-find-the-product-key-on-a-prein...
But its not actually explaining which part of the BIOS menu contains the windows key.
I see a UUID number -- but that doesmt match the windows 8 5x5 code format. SO!
where can I locate the windows 8 key in the BIOS?On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
You need to contact Lenovo technical support directly to ask about recovery media. -
How to find the Org.key based on Job key and Org Unit.
Hi,
Please Let me know how to find the Org.Key based on the Job Key and org Unit.
Regards
nagendra.On recent ThinkPad, the Product ID Key sticker has been moved from the bottom of the unit to behind the battery.
You need to contact Lenovo technical support directly to ask about recovery media. -
How to find if one key figure is used in any report
Dear Experts ,
I have one key figure info object .I wanted to know how to find this key figure is used in which report .
As I know "where used list " but this will not help me .
Any suggestions please share .
PuruHi Puru,
Try following approach,
goto RSZELTTXT table and put your key figure name in the long text and click on execute. Get the list of all the ETULID's and go to table RSZCOMPDIR from this table for all the ETLUID's get all the list of COMPUID's and from COMPUID's you will be able to find all the reports from RSRREPDIR in which that key figure is getting used.
Regards,
Durgesh. -
While raising a revoke request, I need to find out the process instance(created during provisioning) on which it is acting upon. Which DB table/sql query will I get it from?
Hi,
String processInstKey = "";
tcResultSet usrRS = null;
usrRS = userOperationsIntf.getObjects(userKey);
int noProvisionedObjects = usrRS.getRowCount();
for (int j = 0; j < noProvisionedObjects; j++) {
usrRS.goToRow(j);
String objectName = usrRS.getStringValue("Objects.Name");
if (resourceObjectName.equalsIgnoreCase(objectName)) {
processInstKey = usrRS.getStringValue("Process Instance.Key");
break;
thanks S, -
How to find bpel instance in 11g based on the index values using Java APIs
Hi ,
In SOA10G we had option to find the instances based on the index value using Java APIs like below.
WhereCondition criteria= new WhereCondition(SQLDefs.CX_index_1 + " = ?");
criteria.setString(1, "indexValue");
Locator mLoc = getLocator();
IInstanceHandle[] foundInstances = mLoc.listInstancesByIndex(criteria);
Please tell me how to achieve the same functionality in SOA 11G using Java APIs
Regards,
SabaI have multiple bpel in my composite. I checked in ci_indexes table and it shows the instance number of the bpel process. But the em console is showing only the composite instance number. when I opened composite instance, I could see all the bpel process with instance number in the audit trail. How can I find the the actual composite instance number that I should search for in the em console ???
-
How to Find Oracle instances?
Hi all,
Could you please guide how to check oracle instances?
Thanks in advance!!Hi all,
Could you please guide how to check oracle
instances?
Thanks in advance!!Hi,
If you mean "how to find out running instances?" then the answer is OS dependent.
On Windows, you can look for windows services for service names starting with "OracleService...".
On UNIX, you can inquire the same using
ps -ef|grep pmon
Regards -
How we find object list for SAP MM T codes.
Dear Experts,
How can i find object list for SAP MM T codes.
Actualy that is required for SAP User autorization review.
Regards
KumarGet t.codes list from table TSTCT using SE16,Enter t.code as MM* or M*. Execute it.
You will get a list of MM t.codes.
Also you can refer SU22 for authorization objects from above t.codes list. -
I do not know how to find my reader key
I need to find my ereader key. Where can I find it?
Is this connected with Adobe Digital Editions? If so → http://forums.adobe.com/community/adobe_digital_editions
Maybe you are looking for
-
I have written the code to take a text file (from a command line argument) holding the information for the word find grid and also the file holding the words to be found in the grid. The whole find the two files and drop them into memory works all pe
-
What is wrong with my facetime,i am using an ipad everytime i placed a call i can't hear it ringing and the person i am calling can't recieve my call as well,i did everything possible forced off my ipad,on and off facetime on settings,change id's, mu
-
Using Checkboxes in a Table Component
I have a table bound to a sql-query. I added an additional checkbox-row not bounded to the sql-query. now, I would like to check, which checkboxes are checked. I used these code-snippets to do so: http://blogs.sun.com/divas/entry/using_checkboxes_in_
-
Two days installing creative suite 5.5 design premium?
It's been a long time (two days complete) for installing this trial and still nothing, what's wrong?
-
How can I stop Mozilla from wanting me to install the iLivid I don't want to change and I shouldn't have to be forced to look at the ads every time I log on. I have spoken whit iLivid and they told me that they are not the ones doing it. I want this