Skip to Content
author's profile photo Former Member
Former Member

Get the process instance ID

Hey,

I've build a Process DC with subprocesses. I would like to retrieve my process instance ID, this way, when I am in a subprocess, I could still put a link to the diagram of the main process !

Does anyone have any idea how to obtain it ?

Any help would be appreciated!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2009 at 06:33 AM

    Hi,

    There are two possibilities

    *When you are a process in NWA Process Repository(process start UI) you will get the instance ID displayed

    *If your process is already started then from NWA Manage Processes you can get the instance ID

    Regards,

    Harsha

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      thanks for your answer. Now I know that the URL is generated correct and the problem is that I have to less experience in dynpro 😔

      Dynpro differs between relative and absolute URLs. In the first step (how you did) I created a relative URL which is only useful when the target appication is on the same server or the url is not used as a bookmark or a in a email.

      If you need a url which should be persistent you need a absolute url (e.g. for use in mails). It is generated like that:

      String executionURL = WDURLGenerator.getWorkloadBalancedApplicationURL("sap.com/tc~bpem~wdui~taskinstance","ATaskExecution", params);

      Regards

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.