Class Activity
Represents the base class for activity.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.WorkflowCompatibility
Assembly: Mediachase.Commerce.dll
Version: 12.17.2Syntax
public abstract class Activity
Constructors
Activity()
Declaration
protected Activity()
Properties
Context
The context of activity flow execution which contains the activity as a step.
Declaration
protected ActivityFlowContext Context { get; }
Property Value
Type | Description |
---|---|
ActivityFlowContext |
Methods
Execute()
Executes the activity.
Declaration
public bool Execute()
Returns
Type | Description |
---|---|
System.Boolean | Flag to indicate whether the activity is completed or not. |
Execute(ActivityExecutionContext)
Executes the activity.
Declaration
protected abstract ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
Parameters
Type | Name | Description |
---|---|---|
ActivityExecutionContext | executionContext | the ActivityExecutionContext object. |
Returns
Type | Description |
---|---|
ActivityExecutionStatus | status of the activity execution. |
RaiseEvent(String, EventArgs)
Raises an event of the activity.
Declaration
protected void RaiseEvent(string eventName, EventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.String | eventName | Name of the event. |
System.EventArgs | args | The event arguments. |
ValidateProperties(ValidationErrorCollection)
Validate the properties of activity.
Declaration
protected virtual bool ValidateProperties(ValidationErrorCollection validationErrors)
Parameters
Type | Name | Description |
---|---|---|
ValidationErrorCollection | validationErrors | The validation errors. |
Returns
Type | Description |
---|---|
System.Boolean |