Skip navigation
Currently Being Moderated

Process ID get lost or returns -1 in workbench ES

Mar 7, 2012 9:25 AM



I am currently working on a process to write a PDF file name to a specific folder and name its filename as its process ID. For some reasons the process ID is gestting lost at the end of the process so when it created pdf file, its name comes with a "-1" instead of the process ID.


I tried to record the process and see that every thing is workfing fine but as soon as after it flatten the pdf and write it to a folder, its name got changed to "-1". Since it does not show any errors in the log file so I am not sure what is wrong with it.


Can any one please advise on how to fix this issue.


Thank you in advance,


  • Currently Being Moderated
    Mar 8, 2012 9:20 PM   in reply to Han Dao

    Please answer the following questions to narrow down the problem statement..


    1. Is your process is short-lived?

        If yes, there won't be any process Id created. You will always get -1 as process Id


    2. While playback of process recording, do you see a ProcessId created and lost when the PDF is flattened?

       To check that, create a process variable of type long and assign /process_data/@id value to it. Then see the recording what value is saved in your variable.


    If you cascade the process, I mean if you call a sub process (short-lived) from a main process (which is long-lived), you can pass the parent process's ProcessId so that you will get a real number that can be used as filename.


    Non confidential process/forms can be shared with for further troubleshooting.



    Mark as:
  • Currently Being Moderated
    Mar 12, 2012 2:48 AM   in reply to Han Dao

    Is your short-lived process receives the PID that you supply from the main process?


    Record the short-lived process and check if it receives the value or not.

    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