Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Defines an object used to model a work item in a workflow process.
IItem
IProcessInstance
IDataSource
You can use the ProcessInstance object to control, record, and monitor the status of an individual workflow item. It models the state of a process instance, its relation to email posted in the workflow folder, and its expiration behavior. It also supports data access through the IDataSource interface. You don’t need to use this object explicitly unless you are writing your own workflow event sink.
The following example defines two variable names for the ProcessInstance object and the IDataSource interface, creates a ProcessInstance object, gets the IDataSource interface on the ProcessInstance object, and opens the ProcessInstance item with read/write access. ProcInstanceURL must be a valid URL to a ProcessInstance in a workflow folder. This example requires references to "Microsoft CDO Workflow Objects for Microsoft Exchange" (cdowf.dll) and "Microsoft CDO for Microsoft Exchange Library" (cdoex.dll) in your Microsoft® Visual Basic® project.
Dim iPD As CDOWF.ProcessInstance Dim iDsrc As CDO.IDataSource Set iPD = New CDOWF.ProcessInstance Set iDsrc = iPD 'ProcInstanceURL must be a valid URL to a ProcessInstance item iDsrc.Open ProcInstanceURL, _ Nothing, _ adModeReadWrite, _ adFailIfNotExists