Workflow Engine .NET  2
Public Member Functions | Static Public Member Functions | Properties | List of all members
OptimaJet.Workflow.Core.Model.ActivityDefinition Class Reference

Represent an activity in a process scheme More...

Inheritance diagram for OptimaJet.Workflow.Core.Model.ActivityDefinition:
OptimaJet.Workflow.Core.Model.BaseDefinition

Public Member Functions

void AddAction (ActionDefinitionReference action)
 Add ActionDefinitionReference to implementation list More...
 
void AddPreExecutionAction (ActionDefinitionReference action)
 Add ActionDefinitionReference to pre-execution implementation list More...
 
new ActivityDefinition Clone ()
 
- Public Member Functions inherited from OptimaJet.Workflow.Core.Model.BaseDefinition
BaseDefinition Clone ()
 

Static Public Member Functions

static ActivityDefinition Create (string name, string stateName, string isInitial, string isFinal, string isForSetState, string isAutoSchemeUpdate)
 Create ActivityDefinition object More...
 
static ActivityDefinition Create (string name, string stateName, bool isInitial, bool isFinal, bool isForSetState, bool isAutoSchemeUpdate)
 Create ActivityDefinition object More...
 

Properties

string State [get, set]
 Name of the state More...
 
bool IsInitial [get, set]
 If true specifies that the activity is initial. There can be only one initial activity in scheme. Initial activity is the entry point of the process. More...
 
bool IsFinal [get, set]
 If true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final. More...
 
bool IsForSetState [get, set]
 If true specifies that the activity is entry point for a state and possible to set the state with the State name via WorkflowRuntime.SetState method More...
 
bool IsAutoSchemeUpdate [get, set]
 If true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current More...
 
bool HaveImplementation [get]
 Specifies that activity have an implementation More...
 
bool HavePreExecutionImplementation [get]
 Specifies that activity have a pre-execution implementation More...
 
List< ActionDefinitionReferenceImplementation [get, set]
 List of ActionDefinitionReference which are executed at standard workflow execution More...
 
List< ActionDefinitionReferencePreExecutionImplementation [get, set]
 List of ActionDefinitionReference which are executed at pre-execution More...
 
bool IsState [get]
 Specifies that state is assigned More...
 
int NestingLevel [get, set]
 Nesting level of subprocess, 0 - root process, 1-... -subprocesses, null - not assigned More...
 
- Properties inherited from OptimaJet.Workflow.Core.Model.BaseDefinition
virtual string Name [get, set]
 Name of the object in scheme More...
 
DesignerSettings DesignerSettings [get, set]
 Designer settings which used by Workflow Designer More...
 

Detailed Description

Represent an activity in a process scheme

Member Function Documentation

◆ AddAction()

void OptimaJet.Workflow.Core.Model.ActivityDefinition.AddAction ( ActionDefinitionReference  action)

Add ActionDefinitionReference to implementation list

Parameters
actionAction reference

◆ AddPreExecutionAction()

void OptimaJet.Workflow.Core.Model.ActivityDefinition.AddPreExecutionAction ( ActionDefinitionReference  action)

Add ActionDefinitionReference to pre-execution implementation list

Parameters
actionAction reference

◆ Create() [1/2]

static ActivityDefinition OptimaJet.Workflow.Core.Model.ActivityDefinition.Create ( string  name,
string  stateName,
string  isInitial,
string  isFinal,
string  isForSetState,
string  isAutoSchemeUpdate 
)
static

Create ActivityDefinition object

Parameters
nameName of the activity
stateNameName of the state
isInitialIf true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
isFinalIf true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
isForSetStateIf true specifies that the activity is entry point for a state and possible to set the state with the State name via WorkflowRuntime.SetState method
isAutoSchemeUpdateIf true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current
Returns
ActivityDefinition object

◆ Create() [2/2]

static ActivityDefinition OptimaJet.Workflow.Core.Model.ActivityDefinition.Create ( string  name,
string  stateName,
bool  isInitial,
bool  isFinal,
bool  isForSetState,
bool  isAutoSchemeUpdate 
)
static

Create ActivityDefinition object

Parameters
nameName of the activity
stateNameName of the state
isInitialIf true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
isFinalIf true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
isForSetStateIf true specifies that the activity is entry point for a state and possible to set the state with the State name via WorkflowRuntime.SetState method
isAutoSchemeUpdateIf true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current
Returns
ActivityDefinition object

Property Documentation

◆ HaveImplementation

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.HaveImplementation
get

Specifies that activity have an implementation

◆ HavePreExecutionImplementation

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.HavePreExecutionImplementation
get

Specifies that activity have a pre-execution implementation

◆ Implementation

List<ActionDefinitionReference> OptimaJet.Workflow.Core.Model.ActivityDefinition.Implementation
getset

List of ActionDefinitionReference which are executed at standard workflow execution

◆ IsAutoSchemeUpdate

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.IsAutoSchemeUpdate
getset

If true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current

◆ IsFinal

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.IsFinal
getset

If true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.

◆ IsForSetState

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.IsForSetState
getset

If true specifies that the activity is entry point for a state and possible to set the state with the State name via WorkflowRuntime.SetState method

◆ IsInitial

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.IsInitial
getset

If true specifies that the activity is initial. There can be only one initial activity in scheme. Initial activity is the entry point of the process.

◆ IsState

bool OptimaJet.Workflow.Core.Model.ActivityDefinition.IsState
get

Specifies that state is assigned

◆ NestingLevel

int OptimaJet.Workflow.Core.Model.ActivityDefinition.NestingLevel
getset

Nesting level of subprocess, 0 - root process, 1-... -subprocesses, null - not assigned

◆ PreExecutionImplementation

List<ActionDefinitionReference> OptimaJet.Workflow.Core.Model.ActivityDefinition.PreExecutionImplementation
getset

List of ActionDefinitionReference which are executed at pre-execution

◆ State

string OptimaJet.Workflow.Core.Model.ActivityDefinition.State
getset

Name of the state