Platform SDK: Exchange 2000 Server

DeleteWorkflowItem Method

[This is preliminary documentation and subject to change.]

Deletes the ProcessInstance item.

[Visual Basic,VBScript]
Sub DeleteWorkflowItem()
[C++]
HRESULT DeleteWorkflowItem();
[IDL]
HRESULT DeleteWorkflowItem();

Remarks

You can call this routine from your script for any CdoWfEventType--OnChange, OnCreate, OnDelete, OnExpiry, OnReceive. This will delete the ProcessInstance row from the Exchange Web Store, but the workflow event sink will not invoke the workflow engine with an OnDelete event. If you want to take special action when deleting a ProcessInstance, do it before or after calling DeleteWorkflowItem.