Workflow and the Event System
Use the TOM.NET API to make certain Workflow-related events in Content Manager trigger a piece of custom code you write. You can subscribe to a number of moments before, during and after a specific event.
Events related to Workflow are in the Tridion.ContentManager.Extensibility.Events namespace.
This namespace contains two classes that inherit from SaveEventArgs, which itself inherits from CrudEventArgs:
FailActivityEventArgsStartWorkflowEventArgs
This namespace contains an abstract base class WorkflowEventArgs with the following subclasses:
ActivityEventArgs-
An abstract base class for events related to Workflow Activities, as defined by its subclasses:
AssignActivityEventArgsFinishActivityEventArgsRestartActivityEventArgsResumeActivityEventArgsStartActivityEventArgsSuspendActivityEventArgs
AddToWorkflowEventArgs-
A class for the event of adding items to workflow. This class has a property called
InitialApprovalStatusthat lets you set the initial status of an item added to a running Workflow Process (defaults to "Unapproved"). GetProcessDefinitionEventArgs-
This class enables you to override the default types of Process Associations as found in SDL Tridion. For example, by default, a Process Association in a Schema triggers workflow for Components based on that Schema. This class lets you override this trigger and enable, say, a Process Association in a Folder to trigger workflow for Components in that Folder.
ProcessEventArgs-
An abstract base class for events related to Workflow Processes. This class has only one subclass:
FinishProcessEventArgs. RemoveFromWorkflowEventArgs-
A class for the event of removing items from workflow.