Methods / Methods for Archiving and Restoring Processes |
Archives a process instance based on a specified process instance identifier by moving the set of process instance records from the current AgilePoint Database into the AgilePoint Archive Database. The process instance records and all of the associated data are then deleted from the AgilePoint Database. The process instance to be archived must be completed or canceled.
Name | Type | Description |
---|---|---|
processInstanceID | string | A string that contains the ID of the process instance. |
// this is console application sample IWFWorkflowService svc = GetWorkflowService(); string processInstanceID = ..// the ID of process instance to be archived try { svc.ArchiveProcInst(processInstanceID); } catch (Exception ex) { Console.WriteLine("Failed!, {0}", ShUtil.GetSoapMessage(ex)); }