How to Identify GP Process ID from Process Instance ID

Hi,
I am retrieving the running process instances using following method.
IGPProcessInstanceInfo[] runningInstances =
                    runtimeManager.getRunningInstances(
                         GPSearchRole.SEARCH_ROLE_OVERSEER,
                         fromDate,
                         toDate,
                         userContext);
I need to choose only the process instances of one particular process (I have process id of this GP). From the IGPProcessInstanceInfo object I can get the Process Instance ID. But I am not finding any API to findout the Process ID (not process instance id) of this process instance.
Once I get the process id, I can compare the process ids and decide whether it is related to my process or not.
Is there a way to find this information?
Thanks
Ram

Hi Ram,
the ID you have there is a String variable in the template <TemplateID>a<ProcessID>.
I guess you are looking for a process template, so you can split that String by "a" and use the first Int and then compare that Int.
Hope that helps.
Regards,
George.

Similar Messages

  • How to identify who ran the last process chain?

    Hi all,
    How to identify, who ran the last process chain for a PROCESS CHAIN NAME xyz in the production system?
    Thanks

    Hello,
    Go To RSPC1 give your process chain name (Go to  LOG View ) there  you will get Date selectin screen (give This Month and last Month or as per your reqirement) there you can see who ran the process chain with ID.
    Regards,
    Edited by: Subbu_Amar on Oct 13, 2010 5:01 AM

  • How to EXPORT a concurrent program from one instance to another

    Hi,
    I am new to EBS.
    How to EXPORT a concurrent program from one instance to another. I dont want to use FNDLOAD.
    Is there any other way from where we can export the concurrent program to anothere instance from CLIENT connection server.
    Thanks
    Asis

    Hi;
    What is EBS version? Why you dont use FNDLOAD?
    Pelase see below thread
    Move concurrent program to prod
    Move concurrent program to prod
    Regard
    Helios

  • How to identify default version for a process in 11g EM Console

    Hi,
    In 10g, we had a "star" next to the default version in the bpel console to identify the default process.
    How does it work in 11g...how to identify the default process quickly.
    Thanks,
    Amit

    ok..i got something...want to know if this is the best method..
    if one clicks on soa-infra, on the right pane, it shows all deployed composites (across partitions).
    Here it is showing a small green circle just before the default version.
    Is this the only way...actually i was expecting the same behavior when we select a particular partition.

  • How does a RAC DB 'spread' from single instance to multiple instances ?

    GI/RDBMS Version: 11.2.0.3
    OS: Oracle Linux 6.3
    Filesystem : ASM
    When a RAC database is created using dbca , Manually , or RMAN restore, the DB is created in the Node1 first with cluster_Database=FALSE .
    Then you run the following commands (for 3-node RAC)  from Node1
    srvctl add database -d lmnprod -o $ORACLE_HOME -p +LMNPROD_DATA01/lmnprod/spfilelmnprod.ora
    srvctl add instance -d lmnprod -i lmnprod1 -n hwcarser290
    srvctl add instance -d lmnprod -i lmnprod2 -n hwcarser291
    srvctl add instance -d lmnprod -i lmnprod3 -n hwcarser292
    Once the DB is created,mounted and opened in Node1 and the above commands are executed , you set cluster_Database=TRUE and startup the Instance2 and Instance 3 in Node2 and Node3.
    I just want to know how does Node2 and Node3 becomes aware of the DB and joins the DB cluster ? What happens internally ?

    Generally speaking, registering in OCR is not required for database to be a cluster database.
    Migration from single-instance database to cluster consists of creating redo logs and undo tablespace for new instance and enabling this instance (thread). If database is policy-managed, this is done automatically for new node.

  • How to identify Tasks in a running process thread

    Greetings All:
    I am trying to use API calls from within a Long Lived process instance to find running User Tasks, and end them.
    I have a number of User Tasks in gateways that need to be terminated immediately when the 'Master' task reaches a complete status.
    I need to end the tasks even if the user has not opened their task, or has it saved to draft.
    I see methods for re-assigning a Task, and Canceling a Task.
    The difficulty I am having is identifying the User Tasks for the specific Process Instance.
    I see methods for searching for tasks by Process Name, but that brings back too many results from parallel processes.
    I also don't see a process id to match to in the result set.
    I can get the process id for the desired process as a variable within the executing process, so I would like to use it to filter the result set.
    Is there a way to filter / search for tasks that belong to a given process id?
    Any help will be greatly appreciated.
    Mark

    Greetings All:
    I am trying to use API calls from within a Long Lived process instance to find running User Tasks, and end them.
    I have a number of User Tasks in gateways that need to be terminated immediately when the 'Master' task reaches a complete status.
    I need to end the tasks even if the user has not opened their task, or has it saved to draft.
    I see methods for re-assigning a Task, and Canceling a Task.
    The difficulty I am having is identifying the User Tasks for the specific Process Instance.
    I see methods for searching for tasks by Process Name, but that brings back too many results from parallel processes.
    I also don't see a process id to match to in the result set.
    I can get the process id for the desired process as a variable within the executing process, so I would like to use it to filter the result set.
    Is there a way to filter / search for tasks that belong to a given process id?
    Any help will be greatly appreciated.
    Mark

  • Remove Unused Process Tasks from Process Definition for Export

    Hi Everyone,
    I am trying to delete a process task that is no longer used in the process definition of our resource; however, I get an error indicating the "The task cannot be deleted it has schedule items". I would like to export the connector without this particular process task. Can anyone please provide any suggestions on how I can do this? Any inputs will be highly appreciated.
    Many thanks,
    Wendell

    Hi,
    As per my knowledge you cannot delete a process task, if the associated resource object has been provisioned to a user and the task which you wants to delete has been executed atleast once.
    But you can very well delete a newly created process task with which no user has been provisioned.
    Having said this, the workaround for your problem will be as follows.
    1.Remove all the adapters,task dependecies,status mapping,etc from the task (in current env)and make sure that it doesn't get invoked in any scenario.
    2.Now export this process definition to the new environment and before provisioning any user to that specified resource object , delete all the unwanted process task and save the process task.
    Hope this will solve your problem
    Regards,
    NS

  • How to identify different connections/clients from RMIServer???

    Anyone knows how one can do to identify different connections or clients from the implementation/server-object in RMI?? Do I have to send a hostname from the client via method parameter?? If so, any recommendations on which unique name to use??
    Would really appreciate any answer to this!!! - thanx in advance!
    ps; tried currentThread.getName(), but it would return different names from same client (changing at each call).
    /Alejandro

    Hi,
    in order to identify clients I maintain a hash with references to
    the clients. The clients register and unregister with special
    remote methods of the server RMI object.
    I didn't see an API in RMI to do this for me. And it was fairly easy to implement.
    Have fun,
    Klaus

  • Process Statics from Process Name

    I Want to capture the current process details of JavaServer1 and JavaServer2 for 10Hr into outputlog in desire location. but every after 4 Hrs application server getting restarted as functionality.
    I am facing problem while using prstat command to get the process statics with "-p" option.
    for that I have written the small combination of command statement to get the process ID/PID through name of process as below.
    $ps |grep XYZ|grep "ZEE"| grep JavaServer1 | awk '{ print $1 }'
    #17763
    $ps |grep XYZ|grep "ZEE"| grep JavaServer1 | awk '{ print $1 }'
    #17763
    where XYZ is user Name ; ZZZ is Environment name; JavaServer1 and JavaServer2 is processNames; output values are PID of that process.
    Using PIDs for capturing process statics for both as below.
    $prstat -p 17763,17724 >> Output.log
    In Log fine below content getting captured
    PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
    17763 ZYX   345M  142M sleep   59    0   0:00:29 0.0% java/1
    17724 ZYX   630M  308M sleep   59    0   0:00:11 0.0% java/1
    Above both process ids are for JavaServer1 and JavaServer2 which are getting changed after restarting the Server after 4 Hrs and output of file getting blank.
    To Serarch the PID with Process name and collect in log, for that I have written below statements.
    $prstat -p `ps |grep XYZ|grep "ZEE"|grep -v grep| grep JavaServer1 awk '{ print $1 }'`
       PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
    17763 ZYX   345M  142M sleep   59    0   0:00:29 0.0% java/1
    above statements are working for single process name.
    but while updating another process name in the same statement then getting output for last statement included instade of both PIDs.
    $prstat -p `ps |grep XYZ|grep "ZEE"|grep -v grep| grep JavaServer1 awk '{ print $1 }';ps |grep XYZ|grep "ZEE"|grep -v grep| grep JavaServer2 awk '{ print $1 }'`
       PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP
    17724 ZYX   630M  308M sleep   59    0   0:00:11 0.0% java/1
    Please help to get process details of both the process names still if server got restarted.

    The e-mail can be sent without any problem regarding of ALEREMOTE executing the process chain.
    Check if you can receive e-mails from SO00 transaction doing a test.
    Check your services and connections in SCOT transaction.
    Make sure your user id in su01 transaction has the e-mail right configured.
    Diogo.

  • Pass value Process request  to Process Form Request

    Hi,
    Can any one tell me how we can pass particular value from process request to process form request?
    Thanks

    Hi,
    u can use params to pass values.. please see code below for reference.
    if(pageContext.getParameter("saveBtn") != null)
    String userId = String.valueOf(pageContext.getUserId());
    Serializable param[] = {
    invAmt, userId
    oam.invokeMethod("saveHandle", param);
    OADBTransaction trx = oam.getOADBTransaction();
    trx.setClearCacheOnCommit(true);
    trx.commit();
    OAException successMsg = new OAException("Records saved successfully", (byte)3);
    pageContext.putDialogMessage(successMsg);
    pageContext.forwardImmediately("OA.jsp?page=/custom/oracle/apps/fnd/wf/worklist/webui/ssrInvoicePG", null, (byte)0, null, null, true, "N");
    trx.closeTransaction();
    }

  • Fm for processing time in processing order operation

    Hi
    I need to obtain processing time from processing order's operations. ASAIK there are some formulas to calculate this but i cannot find it. Could you give me some tips about that? Is there a fm or bapi to obtaint this?
    regards
    Wojciech.

    Hi,
    Please let me know what is a processing order to which module it belongs so that I can help you out
    Thanks & Regards,
    Chandralekha.

  • How to identify rman backup level?

    Hi,
    I am using rman catalog for rman backup. how to identify rman backup level from catalog.
    Thanks,

    By doing the obvious and consulting the online documentation at http://tahiti.oracle.com
    You will notice the list backup command output has a level column and this is also present in rc_backupset and/or rc_backuppiece.
    Sybrand Bakker
    Senior Oracle DBA

  • How to identify the sysadmin context

    How to identify the sysadmin context from Oracle Applications either from Controller or Application Module ?

    You need to look document of the application server that u are using.
    Because this depends on application servers.

  • How to identify the info package deleted by someone in process chain?

    Hi all,
    I can see a couple of info packages were deleted in the production system and it was removed from the process chain too!!
    how to identify who has deleted the info package in the production system:?
    Thanks

    Can you is there any transport available with the Infopackage deletion activity?
    in SE01 you can check in production system and check if your IPAK is stored in it or not..? IF yes then you can check the user.
    Also you can track is there any deletion transport has come from D to P or Q to P? Can you check whether the IPAK is available in D and Q?
    Also you can check the process chain recent modified by in RSPC and check if there is any user details were captured?
    OR you can also look at in transaction SLG1. Check for the logs..
    Hope this helps,
    Murali

  • How to move the process chain from Unassigned node to a new node in 3.5?

    Hi all,
    I have created a new process chain in the development and it is falling under the Unassigned nodes. I want to move that process chain to an another node. but i am unable to do that
    Can anyone let me know how to move the process chain from unassigned node. I have drag and dropped but still the same in BW 3.5 ?
    Thanks
    Poooja

    Hello,
    Try this....
    Double click on your process chain. Via the menu select:
    Process chain > Attributes > Display components
    Select F4 (possible entries)
    At the bottom of the window you will find a create icon
    to make your own component.
    After you created it, assign it to your process chain.
    Don't forget to save the process chain.
    Regards,
    Sivaram

Maybe you are looking for

  • Missing class file for extended controller

    Any response/advice is greatly appreciated. I've searched the forums, and I saw some had this error, but the post wasn't resolved. We are on 12.1.3. I've done this plenty of times when we were on 11.5.10 with great success. I've personalize a page to

  • How can I automatically import images into iBook Author?

    I'd like to make a photo book with a couple hundred photos. Aside from manually inserting each page, inserting each image, placing/resizing it on the page, is there an easier way to insert many images, and flow them one per page? thanks in advance

  • Error while starting database using #dbstart command

    Hello everybody... I have installed Oracle 10G release 2 successfully and also created my database, But when I try to start the database using #dbstart command I get the following error Failed to auto-start Oracle Net Listene using /oracle/10gR2//bin

  • Where did my camera app go?

    So, yesterday I updated to ios5 on my iPhone 4. Everything seemed to go well updating, but I am now missing the camera app. And there is no quick camera thingy that was supposed to be on the lock screen.  And any app that involves camera or the light

  • HT4239 how do i know the location of Facebook user ?

    how do i know the location of Facebook user ?