ProcessInstance.ProcID in K2MNG.GetProcessInstancesAll

  • 17 November 2006
  • 3 replies
  • 2 views

Badge +13
In the code below, oProcessInstance.ID is the real ProcessInstanceID, but what is the number generated by .ProcID?

What is .ProcID good for this case?

oProcessInstances = oK2Manager.GetProcessInstancesAll("", "", "K2DomainK2DUDE", Nothing, Nothing) 'oProcSet.FullName, strFolio, strOriginator, strStartDate, strEndDate
For Each oProcessInstance In oProcessInstances
Response.Write(oProcessInstance.ID & "<BR>") 'Useful for view flow, history
Response.Write(oProcessInstance.ProcID & "<BR>")

3 replies

Badge +11
The relation between ProcSets, Procs and ProcInstances look something like this:

* ProcSet (ProcSetID 1)
* Proc (ProcID 1) - First version/export of Process definition
* ProcInstance (ProcInstID 1) - First process started on this Proc version
* ProcInstance (ProcInstID 2) - First process started on this Proc version
* ...
* Proc (ProcID 2) - Second version/export of Process definition
* ProcInstance (ProcInstID 3) - First process started on this Proc version
* ProcInstance (ProcInstID 4) - First process started on this Proc version
* ...
* Proc (ProcID 3) - Third version/export of Process definition
* ProcInstance (ProcInstID 5) - First process started on this Proc version
* ProcInstance (ProcInstID 6) - First process started on this Proc version
* ...

Hope it makes sense,
Ockert
Badge +4

Is it safe assume the following then for a 2nd process that gets deployed?


* ProcSet (ProcSetID 2)
* Proc (ProcID 4) - First version/export of Process definition
* ProcInstance (ProcInstID 7) - First process started on this Proc version
* ProcInstance (ProcInstID 8) - First process started on this Proc version
* ...
* Proc (ProcID 5) - Second version/export of Process definition
* ProcInstance (ProcInstID 9) - First process started on this Proc version
* ProcInstance (ProcInstID 10) - First process started on this Proc version
* ...
* Proc (ProcID 6) - Third version/export of Process definition
* ProcInstance (ProcInstID 11) - First process started on this Proc version
* ProcInstance (ProcInstID 12) - First process started on this Proc version


thanks,


Wes

Badge +11

Correct,


 Ockert

Reply