Platform SDK: Exchange 2000 Server |
[This is preliminary documentation and subject to change.]
Contains the ProgID of the COM class which will be used for logging.
[Visual Basic,VBScript] Property AuditTrailProvider As String [C++] HRESULT get_AuditTrailProvider(BSTR* pVal); HRESULT put_AuditTrailProvider(BSTR Val); [IDL] HRESULT [propget] AuditTrailProvider([out,retval] BSTR* pVal); HRESULT [propput] AuditTrailProvider([in] BSTR Val);
The AuditTrailProvider must support IAuditTrail interface. Cdowf.dll contains 3 sample Audit Trail providers (i.e. classes implementing IAuditTrail):
The instance of AuditTrailProvider class is created automatically by the workflow engine in the following cases:
The IAuditTrail::Bind() method is called immediately after creation of the AuditTrailProvider object.
To get the current audit trail from a process instance you can use IProcessInstance.Get_AuditTrail().
Entries are added to the audit trail by calling IAuditTrail.AddEntry().
The following example defines a ProcessDefinition variable, creates the object, and uses the object to set the AuditTrailProvider property.
Dim strProgID As String Dim iPD As CDOWF.ProcessDefinition Set iPD = New CDOWF.ProcessDefinition 'strProgID may be the ProgID of a provider that you wrote, 'or one of the sample providers included with Workflow for 'Microsoft Exchange Platinum. With iPD .AuditTrailProvider = strProgID End With