Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Defines the workflow process for a work item.
Properties
Name | Type | Description |
---|---|---|
ActionTable | [Visual Basic,VBScript] ADODB.RecordSet [C++,IDL] _Recordset* |
Contains the state-transition rules for a workflow process definition, stored as an ADO Recordset. |
AuditTrailProvider | [Visual Basic,VBScript]String [C++,IDL] BSTR |
Contains the ProgID of the COM class which will be used for logging. |
CommonScriptURL | [Visual Basic,VBScript]String [C++,IDL] BSTR |
Contains a URL to the item containing the shared script functions referenced in the Condition and Action scripts. |
DataSource |
[C++,IDL]IDataSource* |
Returns the IDataSource interface on the object. |
DesignTool | [Visual Basic,VBScript] String [C++,IDL] BSTR |
Contains a string describing the workflow design tool (if any) used to create this Process Definition. |
Fields | [Visual Basic,VBScript] ADODB.Fields [C++,IDL] Fields* |
The property collection for the object. |
Mode | [Visual Basic,VBScript] CdoWfMode [C++,IDL] CdoWfMode |
Sets the type of security checking performed by the workflow engine. |
RoleProvider | [Visual Basic,VBScript]String [C++,IDL] BSTR |
Contains the ProgId of the COM class providing role resolution for scripts. |
The ProcessDefinition object is stored as an item in a public folder. All properties are accessible from Microsoft Visual Basic and VBScript. You can use IDataSource.Save, IDataSource.SaveTo, and IDataSource.Open with IProcessDefinition to get and set properties and save a ProcessDefinition item, however you cannot save the ProcessDefinition object on a folder item. Calling SaveTo with the flag adCreateCollection or saving to a folder URL causes an error and will not create a folder.
The following example shows three methods for creating and deleting a ProcessDefinition object.
' Create ProcessDefinition using early binding Dim objProcessDefinition As CDOWF.ProcessDefinition Set objProcessDefinition = New CDOWF.ProcessDefinition ' Delete ProcessDefinition on early binding Set objProcessDefinition = Nothing ' Create ProcessDefinition using late binding Dim oProcDef As Object Set oProcDef = CreateObject("CDOWF.ProcessDefinition") ' Delete ProcessDefinition on late binding Set oProcDef = Nothing ' Create ProcessDefinition from script Dim oPD Set oPD = CreateObject("CDOWF.ProcessDefinition") ' Delete ProcessDefinition from script Set objProcessDefinition = Nothing