Click or drag to resize

Workflow Class

Represents a process or workflow that executes a defined task or set of tasks. This class provides the basic logic to start, stop, pause and continue a workflow both synchronously and asynchronously.
Inheritance Hierarchy
SystemObject
  Enkoni.FrameworkWorkflow

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public abstract class Workflow : IWorkflow

The Workflow type exposes the following members.

Constructors
  NameDescription
Protected methodWorkflow
Initializes a new instance of the Workflow class. It sets the state to the initial value of Init.
Top
Properties
  NameDescription
Public propertyCanContinue
Gets a value indicating whether this workflow is in a state in which it can be continued. Only when the workflow supports pausing and the workflow is in the state Paused, it can be continued.
Public propertyCanPause
Gets a value indicating whether this workflow is in a state in which it can be paused. Only when the workflow supports pausing and the workflow is in the state Started or Continued, it can be paused.
Public propertyCanPauseAndContinue
Gets a value indicating whether the workflow is able to pause and continue its internal processes. By default, a Workflow cannot be paused or continued.
Public propertyCanStart
Gets a value indicating whether this workflow is in a state in which it can be started. Only when the workflow is in the state Init or Stopped, it can be started.
Public propertyCanStop
Gets a value indicating whether this workflow is in a state in which it can be stopped. Only when the workflow is in the state Started, Pausing or Continued, it can be stopped.
Public propertyState
Gets or sets the current WorkflowState of the workflow.
Top
Methods
  NameDescription
Public methodBeginContinue
Begins to continue the workflow.
Public methodBeginPause
Begins to pause the workflow.
Public methodBeginStart
Begins to start the workflow.
Public methodBeginStop
Begins to stop the workflow.
Public methodContinue
Tries to continue the workflow. It blocks until the workflow is continued.
Public methodEndContinue
Waits for the pending asynchronous continue to complete.
Public methodEndPause
Waits for the pending asynchronous pause to complete.
Public methodEndStart
Waits for the pending asynchronous start to complete.
Public methodEndStop
Waits for the pending asynchronous stop to complete.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnContinue
Contains the actual continue logic. The default implementation is empty, subclasses will have to provide the implementation by overriding this method. Implementers of this method do not have to check the state of the workflow or change the state of the workflow as this is already done by the public Continue method.
Protected methodOnPause
Contains the actual pause logic. The default implementation is empty, subclasses will have to provide the implementation by overriding this method. Implementers of this method do not have to check the state of the workflow or change the state of the workflow as this is already done by the public Pause method.
Protected methodOnStart
Contains the actual start-up logic. The default implementation is empty, subclasses will have to provide the implementation by overriding this method. Implementers of this method do not have to check the state of the workflow or change the state of the workflow as this is already done by the public Start method.
Protected methodOnStop
Contains the actual stop logic. The default implementation is empty, subclasses will have to provide the implementation by overriding this method. Implementers of this method do not have to check the state of the workflow or change the state of the workflow as this is already done by the public Stop method.
Public methodPause
Tries to pause the workflow. It blocks until the workflow is paused.
Public methodStart
Tries to start the workflow. It blocks until the workflow is started.
Public methodStop
Tries to stop the workflow. It blocks until the workflow is stopped.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also