3 Replies Latest reply on Apr 26, 2009 5:54 AM by HowardTreisman

    Purge a process Instance

    wmegel

      Hi,

       

      I want to use the ProcessManager API to purge some specific long lived process Instances like this :

      pm.purgeProcessInstance(invocationID);

       

      But i didn't find a way to get the invocation ID of my process instance.

      I use the TaskManagerQueryService to search for process instances and get a list of ProcessInstanceRow objects.

      But unfortunately, this object doesn't have an invocationID attribute, only the processInstanceID...

      Is there a way to get the invocationID from a process instance ?

       

      Thanks,

      Will

        • 1. Re: Purge a process Instance
          Jasmin Charbonneau Level 4

          We also have a purge tool under C:\Adobe\LiveCycle8.2\LiveCycle_ES_SDK\misc\Foundation\ProcessPurgeTool that might be easier to use.

           

          Jasmin

          • 2. Re: Purge a process Instance
            wmegel Level 1

            Jasmin,

             

            I know this tool and I tried it but it's a batch used to purge a lot of process intstances depending on the creation date and other stuff.

            In the source of the batch i founded that it use the process Manager API to purge instances.

            I need to purge a specific process instance and I only know the process instance ID of it.

            The only method I know to purge a specific instance is this one (from the Process Manager API, the same used by the batch) :

            ProcessManager pm = new ProcessManager(_factory);

            pm.purgeProcessInstance(_invocationID);

             

            But I don't know how to get the invocation ID of my process Instance.

             

            Best regards,

             

            Will

            • 3. Re: Purge a process Instance
              HowardTreisman Level 1

              Hi

              We have a component in beta that will allow you to do this.

              Please contact info@avoka.com for more details.

              Thanks,

              howard