Skip navigation
Currently Being Moderated

How to get process instance id

Nov 1, 2010 7:40 AM

Hi,

We are invoking a long lived process from a client using Java API (EJB end point).

We are getting the JobId in return. Is there a way to get the process instance Id through API.

 

Searched a lot in the documentation. Finally inclining to query the table directly

TB_PROCESS_INSTANCE  on LONG_LIVED_INVOCATION_ID.

 

Appreciate a lot if any expert point us to an API way of doing the same

 
Replies
  • Currently Being Moderated
    Nov 3, 2010 12:47 PM   in reply to developwf

    See http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/index.html

     

    com.adobe.idp.taskmanager.dsc.client.query

     

    interface ProcessInstanceRow

     

    getProcessInstanceId() retrieves a unique identifier for the process instance

     

    Steve

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 5, 2010 12:06 PM   in reply to developwf

    You get a job id because the process is long lived (asynchronous). So we return a job id because we don't know when it going to terminate (it could take days if you use a user service).

     

    You can use the Job Manager to check the status of your job. See http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/com/adobe/ idp/jobmanager/service/JobManager.html.

     

    The function getStatus will tell you if it's completed. When it'completed, you can use getResponse to get the value of the process variables.

     

    If you process is short lived, you'll get the result after you call since it's a synchronous call.

     

    Jasmin

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 4, 2011 9:14 PM   in reply to Jasmin Charbonneau

    Hi Jasmin,

    Can you please answer my following questions for my understanding:

    1. What is the difference between invocation id, job id and process id? What is the significance of each in a long lived process?

    2. When should I use JobManager and TaskManager API?

    3. If I just need a functionality where I keep track of the tasks assigned to different users in a process then what will be required..job id or process id?

    4. Assume that I have a screen that shows me all the forms that are inputs to a process but are assigned to different users in the process which is long lived. So in other words, the screen will have two columns..column1: Form and column 2: Status

    Column1 will show how many forms are currently floating in the process. And status will tell that whether the form is assigned to some user or is it done with the process. In this example which is called process instance or process id? And what is the job id in this scenario?

     

    Thanks!

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 15, 2012 12:49 PM   in reply to avi_nyc

    We have a requirement which reads that " As one of a group of people who are submitting comments on a form, I want to see comments made on the form by others before I submit my comments".

     

    I wonder if I can get TaskResultCollection info from the "Assign multiple Tasks" operation using xpath?

     

    If I do JAVA API?? Can anybody offer some pointers?

     

    Thanks a lot.

    Sam

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 26, 2013 9:22 AM   in reply to developwf

    Hi All,

     

    Are you able to get retrieve the ProcessInstanceID from the processSearch(filter) method with the filter set to invocation id. I am doing something as below using the long lived invocation id

     

    processSearchFilter.addCondition(ProcessSearchingConstants.pINVOCATION _ID, Operator.EQUALS, "16876887a102aca157d201e76c760f17");

     

    I am not getting any results back, is this correct. any pointers please.

     

    Thanks

    Shjyju

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points