Craig's Utility Library  4.0 Beta
Utilities.Workflow.Manager.WorkflowNode< T > Class Template Reference

Workflow node More...

Inheritance diagram for Utilities.Workflow.Manager.WorkflowNode< T >:
Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >

Public Member Functions

 WorkflowNode ()
 Initializes a new instance of the WorkflowNode<T> class. More...
 
void AddOperation (IOperation< T > Operation, params IConstraint< T >[] Constraints)
 Adds an operation to be run with the node More...
 
void AddOperation (IWorkflow< T > Operation, params IConstraint< T >[] Constraints)
 Adds an operation to be run with the node More...
 
void Repeat (int Times=1)
 Repeats the last operation the specified number of times. More...
 
void Retry (int Times=1)
 Retries the last operation the specified number of times if it fails. More...
 
Start (T Data)
 Starts the node using the data specified More...
 

Properties

ICollection< IInvoker< T > > Operations [get]
 Gets or sets the operations. More...
 
int RepeatCount [get]
 Gets the repeat count More...
 
int RetryCount [get]
 Gets the retry count. More...
 

Detailed Description

Workflow node

Template Parameters
TData type

Definition at line 37 of file WorkflowNode.cs.

Constructor & Destructor Documentation

Initializes a new instance of the WorkflowNode<T> class.

Definition at line 42 of file WorkflowNode.cs.

Member Function Documentation

void Utilities.Workflow.Manager.WorkflowNode< T >.AddOperation ( IOperation< T >  Operation,
params IConstraint< T >[]  Constraints 
)

Adds an operation to be run with the node

Parameters
OperationThe operation.
ConstraintsThe constraints.

Implements Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >.

Definition at line 72 of file WorkflowNode.cs.

void Utilities.Workflow.Manager.WorkflowNode< T >.AddOperation ( IWorkflow< T >  Operation,
params IConstraint< T >[]  Constraints 
)

Adds an operation to be run with the node

Parameters
OperationThe operation.
ConstraintsThe constraints.

Implements Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >.

Definition at line 82 of file WorkflowNode.cs.

void Utilities.Workflow.Manager.WorkflowNode< T >.Repeat ( int  Times = 1)

Repeats the last operation the specified number of times.

Parameters
TimesThe number of times to repeat
Returns
The workflow object

Implements Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >.

Definition at line 92 of file WorkflowNode.cs.

void Utilities.Workflow.Manager.WorkflowNode< T >.Retry ( int  Times = 1)

Retries the last operation the specified number of times if it fails.

Parameters
TimesThe number of times to retry.
Returns
The workflow object

Implements Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >.

Definition at line 102 of file WorkflowNode.cs.

T Utilities.Workflow.Manager.WorkflowNode< T >.Start ( Data)

Starts the node using the data specified

Parameters
DataThe data.
Returns
The result from the workflow node

Implements Utilities.Workflow.Manager.Interfaces.IWorkflowNode< T >.

Definition at line 112 of file WorkflowNode.cs.

Property Documentation

ICollection<IInvoker<T> > Utilities.Workflow.Manager.WorkflowNode< T >.Operations
get

Gets or sets the operations.

The operations.

Definition at line 53 of file WorkflowNode.cs.

int Utilities.Workflow.Manager.WorkflowNode< T >.RepeatCount
get

Gets the repeat count

The repeat count

Definition at line 59 of file WorkflowNode.cs.

int Utilities.Workflow.Manager.WorkflowNode< T >.RetryCount
get

Gets the retry count.

The retry count.

Definition at line 65 of file WorkflowNode.cs.


The documentation for this class was generated from the following file: