Obtain the task instance key

Hi,
I have a class which provide an object to a user. The object is pending at a manual confirmation of the operation to pass the state of the resource from provisioning to provisioned.
Exists any method to obtain the task instance key to set the manual answer throw the OIM API? I have only the object key from de resource.
Thanks

Thor.API.tcResultSet getTaskDetail(long processInstanceKey,
java.util.Map filterMap)
throws Thor.API.Exceptions.tcAPIException,
tcAPIExceptionReturns detailed information about all the tasks definitions in the specified provisioning process.
Parameters:
processInstanceKey - The key of the process instance in the system.
Returns:
A tcResultSet containing one to many rows, each row holding information about a task in the process. The following columns are returned
Process Definition.Tasks.Key
Event Handler Manager.Key
Process Definition.Tasks.Default Assignee
Process Definition.Tasks.Milestone Dependency
Process Definition.Tasks.Conditional
Process Definition.Tasks.Task Name
Process Definition.Tasks.Milestone Sequence
Process Definition.Tasks.Milestone Sequence Interval
Process Definition.Tasks.Required For Completion
Process Definition.Tasks.Hours
Process Definition.Tasks.Minutes
Process Definition.Tasks.Days
Process Definition.Tasks.Constant Duration
Process Definition.Tasks.Allow Multiple Instances
Process Definition.Tasks.Milestone Datalabel
Process Definition.Tasks.Task Description
Process Definition.Tasks.Second Duration
Process Definition.Tasks.Allow Cancellation While Pending
Process Definition.Tasks.Disable Manual Insert
Process Definition.Tasks.Milestone Delete Flag
Process Definition.Tasks.Complete on Recovery
Process Definition.Tasks.Milestone Mapping Status
Process Definition.Tasks.Task Effect
Process Definition.Tasks.Retry Period
Process Definition.Tasks.Retry Count
Process Definition.Tasks.Trigger Type
Process Definition.Tasks.Child Table Name
Process Definition.Tasks.Assign To User Manager
Process Definition.Tasks.System Level
Process Definition.Tasks.Creation Date
Process Definition.Tasks.Created By
Process Definition.Tasks.Update Date
Process Definition.Tasks.Updated By
Process Definition.Tasks.Note
Process Definition.Tasks.Row Version
Throws:
tcAPIException
Thanks
Suren

Similar Messages

  • 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,
    Nitto

    To 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

  • How to get the process instance key so as to retry a rejected task through api while ad provisoing?

    Hi All,
    How to get the process instance key so as to retry a rejected task through API while AD provisioing state?
    API URL - http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
    Thanks

    To 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

  • How to measure the task instance size

    I am trying to understand how to measure the custom task instnace size that was occupied in the cache repository. Is there a way to obtain the size (in KB s ) in lighthouse 4.1 +sp5. Please help.                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi, Luiz!
    In order to estimate the instance size, you will have to sum up all the instance variables size.
    From the practical prospective it may be difficult to use the algorithm in cases when your instance variables are not simple types.
    For already existing instances, you can look the instance size in the database:
    An instance is just a java object, that is serialized as a byte[] and stored in the engine database, PPROCINSTANCE table, column INSTDATA.
    You can write a simple program (either java or SQL plus) that would read the instance from the BLOB and measure the size.
    And yes, with large instances you can have performance problems.

  • Delay in the task instance

    Hi Experts,
    I am trying to put some kind of delay in my workflow using manualaction timeout option but that is forcing IDM to display a page with the checkbox and Save and Cancel buttons.
    It is also displaying all the variables available to the workflow at that time.
    I dont want to display this page to the end users who would be accessing this application on user page.
    can i use java sleep or something which can do the same task (creating delay)? I dont want users to see that form displaying all the variables.
    would appreciate your comments!!!

    Hi,
    I could not understand the question clearly.
    One thing you can try is to call the approval subprocess to a dummy approver. Set the timeout valriable to intended minutes.
    The approval workflow will return after timing out.
    Regards
    Arjun
    Edited by: arjun.sengupta on Sep 2, 2010 7:24 AM

  • How to obtain the Management Certificate Key for using Azure with Release Managment

    In the "Release Management" app in administration --> Manage Azure one must provide a "Management Certificate Key".
    I have created a self-signed cert and uploaded it to Azure Portal --> Settings --> Management certificates
    How do I get the key?
    Thanks ))

    Hi Atwater and Sons,
    when you look at the blog post paragraph four you find a link
    Download the settings file from the Azure portal to get your subscription ID and Management Certificate key.
    After you have downloaded the file, open the file with Notepad.
    You will find everything there - except the storage Account Name:
    <PublishData>
    <PublishProfile
    SchemaVersion="2.0"
    PublishMethod="AzureServiceManagementAPI">
    <Subscription
    ServiceManagementUrl="***"
    Id="***"
    Name="***"
    ManagementCertificate="***" />
    </PublishProfile>
    Copy the Id and the ManagementCertificate and past them into RM (Manage Azure)
    Your Storage Account Name: Blog Post Paragraph four
    Go here to get the name of an existing storage account or add
    a new storage account using the Azure portal.
    Regards,
    Daniel

  • How to set the tasks as cancelled

    Guys ,
    I had a scenario , where i have written a setObjectStatus adapter which sets the status of RO as Revoked.
    So i have provisioned a resource to a user and did some updates on resource profile as well , the status of the RO is provisioned and the tasks
    like create user , abc updated etc ... as completed .
    Now i fire the setObjectStatus adapter and it sets the RO status as revoked successfully . The check boxes like enable, disable , revoke etc are disabled as a result of setting the RO status as revoked . But the task inside doesnot become canceled.
    Any ideas how to achive the cancellation of tasks as well ?
    Thanks
    'Suren

    Hi Surendra.
    What did you get when you run the tcUserOperationsIntf.getObjects(userKey)? When you run this method, you'll get all object instance for a specific user, so you have to read the Object Instance.Key attribute.
    Also, you can invoke the methods below of useroperationsintf:
    void revokeObject(long plUserKey, long plObjectInstanceForUserKey)
    Revokes the provisioning of an object for a user directly without going through a request.
    void revokeObjects(long plUserKey, long[] paObjectInstancesForUserKey)
    Revokes the provisioning of an object for a user directly without going through a request
    Renato.

  • To fetch process instance key for Modify Provisioned Resource while request

    Hi,
    I am trying "Self Modify Provisioned Resource" through Request and multiple resource object is assigned to the user.I have a requirement to a develop validator code to compare old data and request data and take action accordingly.How to get the Process Instance Key or OIU Key of the resource w.r.t user, so that i can compare the data entered in dataset to the data in process form and do the modify operation accordingly.
    I am working on OIM 11.1.1.5 version and have applied BP03 patch also.
    -Neha Gupta
    Edited by: 912833 on Sep 11, 2012 2:26 AM
    Edited by: 912833 on Sep 11, 2012 2:28 AM

    More or less you can use the following:
    resultGetObjects = userOperationsIntf.getObjects(plUserKey);
                int countResultGetObjects = resultGetObjects.getRowCount();
                logger.debug("CommonProvisioning.updateProcessForm Object Count = " + countResultGetObjects);
                for (int j = countResultGetObjects; --j >= 0;) {
                    resultGetObjects.goToRow(j);
                    String objName = resultGetObjects.getStringValue("Objects.Name");
                    String status = resultGetObjects .getStringValue("Objects.Object Status.Status");
                    if (resourceObjName.equalsIgnoreCase(objName) && "Provisioned".equalsIgnoreCase(status)) {
                        prntPrvsndPrsInsKey = resultGetObjects .getLongValue("Process Instance.Key");
                         break;
                }HTH,
    BB

  • OIM: what parameters for the task assignment adapter?

    Hi,
    following the tip here: Re: how to use adapter to assign task to a specific user
    I created a task assigment adapter and set the following by means of a simple java class:
    Adapter return value for key="myapprover2"
    Adapter return value for key type="User"
    myapprover2 is the login name of a user in OIM.
    It does not seam to work, because the approval task is assigned to the xelsysadm instead of myapprover2.
    What I else need to do to get it working?
    Thanks.

    The key needs to be the Users.Key value returned in a string format to the Object variable holding the task assignment key variable.
    -Kevin

  • JSF getting task instance id

    Hi all
    I am new to JSF..We are using jsf with the JBPM JPDL Engine.
    My question is i able to access the process instance id using JSF expression #{processIntance.getId} ..how do I get the task Instance id ..
    I tried #{taskInstance.getId} does not seem to work..
    Also if you point me to any useful documentation in this respect..i would be greatful..thanks in advance..

    Thanks for your reply.. I sorted this out..
    If I need the taskInstance id i need to use it in the task node execution context .It works ok..if used inside the "task-assign" system template..

  • Task Instance Id.

    I need to pass the Task Instance Id (SUN IDM) in the Notification mail. Can anyone tell me how to do that.
    Thanks in Adv,
    --ravi
    Message was edited by:
    RavindraPaliwal

    Thanks for your reply.. I sorted this out..
    If I need the taskInstance id i need to use it in the task node execution context .It works ok..if used inside the "task-assign" system template..

  • Why Task Instance Name is messed up?

    I kicked off a customized task from console, the task was completed successfully, however, the task instance name displayed on page "Server Tasks ---> All Task" is messed up as following
    TASK7F2DB676E49A6D04:-395D12E7:11989A5891E:-7F0F
    What is the possible problem?
    Have a good one

    first define some variable:
    <Variable name='taskName'>
          <invoke name='getName'>
                   <invoke name='getDefinitionRef'>
                          <invoke name='getTask'>
                                <ref>WF_CONTEXT</ref>
                            </invoke>
                     </invoke>
            </invoke>
      </Variable>now you call rename task workflow application:
    <Activity id='3' name='Rename Task' hidden='true'>
           <Variable name='newTaskName'/>
                    <Action id='0' name='set task name'>
                        <expression>
                            <set name='newTaskName'>
                                <concat>
                                    <ref>taskName</ref>
                                    <s> </s>
                                    <ref>WF_CASE_OWNER</ref>
                                    <s> (</s>
                                    <invoke name='format'>
                                        <new class='java.text.SimpleDateFormat'>
                                            <s>yyyyMMdd HH:mm:ss</s>
                                        </new>
                                        <new class='java.util.Date'/>
                                    </invoke>
                                    <s>)</s>
                                </concat>
                            </set>
                  </expression>
        </Action>
        <Action id='1' process='Rename Task'>
                <Argument name='name'>
                            <ref>newTaskName</ref>
                </Argument>
                <Argument name='makeUnique' value='true'/>
        </Action>thats it.

  • How do I obtain the next number for a Primary Key using an ADF View Object?

    I have two separate View Objects (A & B) for the same Entity Object. View Object A does a SELECT on all of the fields in the table. This View Object is where I execute my adds and updates. View Object B is only used to retrieve the next number for the primary key. This is done so that when I add a row to the database, I always get the max number of the primary key and add one to it. I accomplished this by setting the SQL mode to Expert and using the SQL: "SELECT MAX(NBR) AS MAX_NUMBER FROM TABLE_1". This may be overkill having a seperate View Object for this, but so far this is the only way I have found to obtain the next number. However, I have discovered that this way does not always work.
    The problem I'm running into is when I try to add multiple records to View Object A without committing the transaction between each add. Because View Object B is disconnected from View Object A, the MAX_NUMBER of View Object B comes back with the same number for each add I do on View Object A. So I know I must retrieve the MAX_NUMBER from View Object A.
    I've tried using the following code in my Table1ViewImpl class:
    this.setQuery("SELECT MAX(Table1.NBR) AS MAX_NUMBER FROM TABLE_1 Table1");
    this.executeQuery();
    The view object now has what I want, but I have yet to figure a way to extract the MAX_NUMBER out of the View Object. I've also looked into using the method addDynamicAttribute() but I can't figure out any way to set the attribute with the MAX_NUMBER.
    I can't be the only one trying to retrieve the next number from a database table using ADF. Can anyone help me with this? FYI - I'm using JDev 10.1.3 EA.

    You missing the point.
    On a multi-user db knowing the next highest number doesn't guarantee the number will be available when it comes time to commit the record. You can prove this to yourself by opening two instances of your app and do whatever you do to add a new record to your VO. Both will assume the same number, and when you commit an error will be generated
    You must use sequences to avoid the possibility of duplicate keys. If you are trying to avoid gaps in your numbering then you need to convince yourself why this is necessary.

  • How can I obtain the primary key of a table for an entity relation?

    hello everybody
    I am doing a consultation to a table in my data base, good this table has alone two fields, the first one is the code or pk and the second one is the description, to be presisos they are names of city and code.
    From the beginning!!: This method this one in another class that is a Dialog that is going to call to the class SelecPlace ();
      SelecPlace sl = new SelecPlace();
    public void capturarLugar(){  //  Simple void method in the mentioned class
            String place = txtProcedencia.getText() ;  //  a JTextField
            sl.executeStatement(place) ;                  
        }ok, now we see part of the code of the class SelectPlace
    public class SelecPlace extends AbstractTableModel{
        Connection con = null;
        Statement sentencia = null ;
        ResultSet rs = null;
        ResultSetMetaData rsmd = null ;
        String[] nameColum = {} ;
        Vector datos = new Vector() ;
        public SelecPlace() { }
        public void executeStatement(String query){
          try{
             con = DBManager.getConnection() ;
             sentencia = con.createStatement(rs.TYPE_SCROLL_INSENSITIVE,
                                                                          rs.CONCUR_UPDATABLE) ;
             String sql = "select * from Place where descripcion like %"+query+"%'";
              rs = sentencia.executeQuery(sql) ;
              rsmd = rs.getMetaData();
              int nroColumnas = rsmd.getColumnCount() ;
              nameColum = new String[nroColumnas] ;
              //obtengo los nombres de columnas en cache
               for(int colum = 0; colum < nroColumnas; columna++){
                    nameColum[colum] = rsmd.getColumnLabel(columna + 1) ;
               datos = new Vector();
                while(rs.next()){
                    Vector newRow = new Vector();
                    for(int i = 0; i < getColumnCount(); i++){
                    newRow.addElement(rs.getObject("place_ID"));
                    newRow.addElement(rs.getObject("description"));
                    datos.addElement(nuevaFila);
                fireTableChanged(null);
            }catch(SQLException e){
                System.err.println(e);
                e.printStackTrace(System.err);
                System.out.println("error in statement");
            }catch(ClassNotFoundException cnfe){
                System.err.println(cnfe);
        }Ok, this code me works and I obtain in this case the field description of the table Place
    Now my question is, how can I obtain the primary field of my table?
    I need this value of this field that in the base of information in a bigint, and to take it to the first class before mentioned, for that I am working with a data base related

    Certain duffymo and everyone!!, good I give you my scheme:
    And generalizing my question, I want to obtain the value of the primary key of a table in the database, I obtain more values of the same row, but I need the primary key, and you see one with the primary key I want to turn a Long and it to insert with code java in foreign clave in another table of the database
    Good of this form I believe that it would not be breaking the integrity relacional of the tables

  • Adobe reader XI not responding, multiple instances in the task manager is XI junk?

    Hey everyone!
    I need some help, I have about 175 computers that im working on and a hand full (more as the days go on) of them are having a problem with adobe reader XI.
    Here is what is happening.
    If im online pulling up a pdf from a finance company we use the pdf will begin to open (within the browser) and then you will get the blue loading bar
    and then it gets almost to the end (somewhere between 80% and 99%) and then it will just freeze up or just display a white page where the pdf should be. It is doing this across a bunch of sites not just one or two.
    The other thing i have noticed is that there are multiple instances (10 - 20) of the adobe reader xi in the task mananger if you close all them out some times it will start working some times it wont.
    Here is what i have done.
    1. removed adobe XI
    2 reset the browsers
    3 changed the settings with in reader XI
    4 used the removal tool
    5 tried a different browser
    Im runing out of options!
    HELP
    I have reader 11.0.10

    What is the operating system on these computers?  What browser are they using?

Maybe you are looking for

  • Delete posted invoice

    I posted invoice 123 against PO due to some problem I tried to reverse the invoice 123 but system will not allow. I posted another invoice 678 with dif ref number for the same PO. Now I want to delete first invoice 123. so please help me how to do it

  • Mexico Telcel LTE iPhone 5 when will it be available?

    I called telcel to ask when they would provide LTE for the iPhone and their answer is that it is available but they can not provide the service because Apple has not released the license, does anybody know if this is true and if so when will Apple le

  • The directions of objects

    I am looking for the methods or classs that incorporate the directions of different object eg, polygons. I mean for instance polygon A lies North of the polygon B and so on. Other directions may include N;E;W;S etc. Can you please give me suggestions

  • N95 Display problems

    Hi, I am facing a weird problem since yesterday with my N95-1. There is a double horizental black line on the top of the screen. It started small and grew to fill almost the complete top quarter of the screen. This appears only when the lights of the

  • GRC 5.2 SP upgrade

    Hi Guys, I have GRC 5.2 SP3 available in our Sandbox. If I wish to upgrade it to SP9 (which is the latest) via SDM, can I just download SP9 (from SP3->SP9) and deploy it without going through the SP upgrade sequence...like from SP4->SP5->SP6->SP7->SP