Class WorkflowTransition

The Transition class describes an edge within a workflow graph. It is comprised of an originating state, an action that can be taken within that state, and the resulting state upon taking that action.

Inheritance
System.Object
WorkflowTransition
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Social.Moderation.Core
Assembly: EPiServer.Social.Moderation.Core.dll
Version: 1.5.4
Syntax
public class WorkflowTransition

Constructors

WorkflowTransition(WorkflowState, WorkflowState, WorkflowAction)

Constructor

Declaration
public WorkflowTransition(WorkflowState from, WorkflowState to, WorkflowAction action)
Parameters
Type Name Description
WorkflowState from

The origin state for this transition

WorkflowState to

The resulting state for the transition

WorkflowAction action

The action action which will advance a workflow from the origin state to the resulting state

Properties

Action

Gets the action which will advance a workflow from the origin state to the resulting state.

Declaration
public WorkflowAction Action { get; }
Property Value
Type Description
WorkflowAction

From

Gets the origin state for this transition.

Declaration
public WorkflowState From { get; }
Property Value
Type Description
WorkflowState

To

Gets the resulting state for this transition.

Declaration
public WorkflowState To { get; }
Property Value
Type Description
WorkflowState

Methods

Equals(Object)

Compares this instance with another object.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

the object to compare with this instance.

Returns
Type Description
System.Boolean

Returns true if this instance and another specified object, of type WorkflowTransition have the same value of the underlying From and To states name strings, else returns false.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Returns the hash code of this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

A 32-bit signed integer hash code.

Overrides
System.Object.GetHashCode()
arrow_upward