IAction Interface |
Represents a task to be completed when a transition is executed. An action is associated with a transition through the AddAction(EnumActionType, String) method.
There are actions for common operations in the content tree, such as checking in a page and marking a page for publish. If the built-in actions are not adequate, developers can create custom workflow actions. Custom workflow actions assemblies must be put in App_Data/xml/custom/plugins/CustomWorkflowActions directory. The actual Action class must implement the ICustomWorkflowAction interface. The custom action uses its full class name as the value of the ProgID attribute and calls the Execute method to perform the action.
The actions associated with a transition are executed in the order in which they are added to the transition. If an action fails to execute, the transition will not complete. The workflow remains in the WorkState it was in before the transition executed.
Namespace: Ingeniux.CMS
The IAction type exposes the following members.
Name | Description | |
---|---|---|
Attributes |
Gets the collection of Attributes.
| |
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 the workflow action.
| |
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.) | |
Manager |
Gets the manager that retrieved this entity instance.
(Inherited from IEntityTManager.) | |
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.) | |
Type |
Gets and sets the workflow action type.
|
Name | Description | |
---|---|---|
Attribute |
Retrieves an Attribute by its name.
| |
AttributesCount |
Gets the count of the Attributes collection.
| |
Execute |
Executes this action.
| |
RemoveAttribute |
Removes an Attribute from collection.
| |
SetAttribute(IWorkflowAttribute) |
Sets the value of an Attribute. If the Attribute doesn't exist, it creates a new one with the given object data.
| |
SetAttribute(String, String) |
Sets the value of an Attribute. If Attribute doesn't exist, will create a new one with the given name.
| |
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.) |
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.) |
<Action ID="action_3" Description="Republish site" Type="Republish" PubTarget="PublishingTargets/2"/>