Represents a definition of workflow. Defines a Transitions tree/loop to move
Pages through, the Users to assign page to, and the Actions to perform on these transitions.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
The IWorkflowDefinition type exposes the following members.
Properties
Name | Description | |
---|---|---|
Created |
Gets the entity's creation date.
(Inherited from IEntity.) | |
CreationUser |
Gets the ID of the User who created this entity.
(Inherited from IEntity.) | |
Description |
Gets and sets the description of this Workflow Definition.
| |
LastModified |
Gets the date when the entity was most recently modified.
(Inherited from IEntity.) | |
LastModifiedUser |
Gets the ID of the User who lasted edited the entity.
(Inherited from IEntity.) | |
Name |
Gets and sets the entity's name.
(Inherited from IEntity.) | |
Session |
Gets the session that retrieved this entity. An entity is always session-specific.
(Inherited from IEntity.) | |
SessionId |
Gets the unique ID of the session that retrieved this entity.
(Inherited from IEntity.) | |
Transitions |
Gets the collection of Transitions that belong to this Workflow Definition.
|
Methods
Name | Description | |
---|---|---|
AddTransition |
Adds a new Transition to this Workflow Definition.
| |
InitialTransition | ||
RemoveTransition |
Removes a Transition from the collection.
| |
Transition |
Retrieves a Transition from the collection by its unique ID.
| |
TransitionByName |
Retrieves a Transition from the collection by its name.
| |
TransitionsCount |
Gets the count the Transitions in the collection.
| |
ValidateData |
Validates this entity's data. Implemented by concrete inheriting types.
(Inherited from IEntity.) | |
ValidateUserPermission |
Validates the user permission on the current entity. Implemented by concrete inheriting types.
It is called automatically upon saving an entity.
(Inherited from IEntity.) |
Events
Name | Description | |
---|---|---|
AfterEntitySave |
This event is fired after a Entity object is saved.
(Inherited from IEntityEvents.) | |
BeforeEntitySave |
This event is fired before any Entity object is about to be saved.
(Inherited from IEntityEvents.) |
Remarks
Note the conceptual difference between a Workflow Definition and a workflow:
A Workflow Definition is the host of all the transition information.
A workflow is based on a workflow defintion and is specific to one Page, but it only holds the information on the current state, the most recent transition, and user comments on the most recent transition.
Examples
Serialization of a workflow defintion matches a definition entry in the workflowdefinitions.xml file in previous-generation CMS site content:
<WorkFlowDefinition Description="Used to track News Articles submitted through the website's entry form." ID="WorkflowDefintions/1" Name="Anonymous News Submission"> <Transitions> <Transition AllowNextGroupToAdvance="false" CurrentStateID="WorkStates/1" DefaultUserID="" Description="" ID="WorkflowTransition_WorkflowDefinitions/1_1" IsDefault="true" Name="Initial" NextGroupID="UserGroups/3" NextStateID="WorkStates/2" ToolbarIcon="" Trigger="OnCreate"> <Actions NextID="1"/> </Transition> <Transition CurrentStateID="WorkStates/2" Description="" ID="WorkflowTransition_WorkflowDefinitions/33_1" IsDefault="true" Name="Initial" NextGroupID="UserGroups/4" NextStateID="WorkStates/3" Trigger="OnCreate"> <Actions NextID="4"> <Action ID="action_1" Type="MarkForPublish"/> <Action ID="action_2" Type="CheckIn"/> <Action ID="action_3" Type="Republish"/> </Actions> </Transition> </Transitions> </WorkFlowDefinition>
See Also