Platform SDK: Exchange 2000 Server

Registering a Workflow

Anyone can author a workflow as long as they are the folder owner and are allowed to register the CDO Workflow Event Sink. You control who can register the event sink by populating the 'Can Register Workflow' role of the Workflow Event Sink COM+ package. The following illustration shows the Component Services dialog where you populate this role.

Note   Before adding users to roles or modifying "Workflow Event Sink" properties, make sure to shut down the COM+ application if it's running.

Workflow for Exchange 2000 Server supports three events--OnSyncSave, OnSyncDelete, and OnTimer. You 'hook-up' or 'turn on' your workflow folder by registering the event sink for these events in the folder where you want to enforce the workflow process. You can register the event sink with "DEEP" scope so that all subfolders inherit the same workflow process as well. Therefore certain rules apply to registering the event sink. The topic 'Registering Workflow Event Sink for your folder' covers these rules in some detail.

You use the event registration item to set the following four properties for your workflow application.

The following table summarizes where to set these properties. Notice that you never use the OnTimer registration item to set these properties. You must set the '...defaultprocdefinition' and '...allowadhoc' properties with the OnSyncSave registration item. The '...enabledebug' and '...disablesuccessentries' properties are optional, and you can set them on either or both the OnSyncSave and the OnSyncDelete registration items.

Property Set with OnSyncSave registration item? Set with OnSyncDelete registration item? Set with OnTimer registration item?
http://schemas.microsoft.com/cdo/workflow/defaultprocdefinition Yes, mandatory. No. No.
http://schemas.microsoft.com/cdo/workflow/allowadhoc Yes, mandatory. No. No.
http://schemas.microsoft.com/cdo/workflow/enabledebug Yes, optional. Yes, optional. No.
http://schemas.microsoft.com/cdo/workflow/disablesuccessentries set Yes, optional. Yes, optional. No.