Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class ActivityDefinition

OptimaJet.Workflow.Core.Model.ActivityDefinition

Represent an activity in a process scheme

public class ActivityDefinition : BaseDefinition, IInlineActivity, IOrdinaryActivity

Inheritance

Implemented Interfaces

Properties

Name
Type
OriginalName #
String
If object was inlined, you can get its original name from this property
OriginalSchemeCode #
String
The code of the scheme to which the inlined object originally belonged.
LastTimeInlineName #
String
The name of the inline activity instead of which the object was inlined last time.
FirstTimeInlineName #
String
The name of the inline activity instead of which the object was inlined first time.
WasInlined #
Boolean
Return true if the object was inlined.
ActivityType #
ActivityType
Type of the activity. Ordinary or Inline.
SchemeCode #
String
Inlined scheme name for inline activity.
State #
String
Name of the state
IsInitial #
Boolean
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.
IsFinal #
Boolean
If true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
IsForSetState #
Boolean
If true specifies that the activity is entry point for a state and possible to set the state with the ActivityDefinition.State name via WorkflowRuntime.SetState method
IsAutoSchemeUpdate #
Boolean
If true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current
DisablePersistState #
Boolean
If true specifies that the activity is not save state in database (WorkflowProcessInstance)
DisablePersistTransitionHistory #
Boolean
If true specifies that the activity is not save state in database (WorkflowProcessTransitionHistory)
DisablePersistParameters #
Boolean
If true specifies that the activity is not save state in database (WorkflowProcessInstancePersistence)
UserComment #
String
Custom comment
HaveImplementation #
Boolean
Specifies that activity have an implementation
HavePreExecutionImplementation #
Boolean
Specifies that activity have a pre-execution implementation
Implementation #
List<ActionDefinitionReference>
List of ActionDefinitionReference which are executed at standard workflow execution
PreExecutionImplementation #
List<ActionDefinitionReference>
List of ActionDefinitionReference which are executed at pre-execution
Annotations #
List<Annotation>
A List of Annotation attached to this activity.
ExecutionTimeout #
ActivityTimeout
Timeout for execution ActivityTimeout
IdleTimeout #
ActivityTimeout
Timeout for idle ActivityTimeout
ExceptionsHandlers #
List<ActivityExceptionsHandler>
Exceptions handler ActivityExceptionsHandler
IsState #
Boolean
Specifies that state is assigned
NestingLevel #
Nullable<Int32>
Nesting level of subprocess, 0 - root process, 1-... -subprocesses, null - not assigned
CustomType #
String
Returns custom type of activity, if the activity is not custom, returns null

Methods

public static ActivityDefinition CreateInlineActivity(string name, string schemeCode) #
Creates inline activity

Parameters

Name
Type
Description
name
String
schemeCode
String

Returns

Type
Description
ActivityDefinition
public void AddAction(ActionDefinitionReference action) #
Add ActionDefinitionReference to implementation list

Parameters

Name
Type
Description
action
ActionDefinitionReference
Action reference
public void AddPreExecutionAction(ActionDefinitionReference action) #
Add ActionDefinitionReference to pre-execution implementation list

Parameters

Name
Type
Description
action
ActionDefinitionReference
Action reference
public ActivityDefinition Clone() #

Returns

Type
Description
ActivityDefinition
public T GetAnnotation<T>(string name) #
Get an annotation attached to this activity

Parameters

Name
Type
Description
name
String
Annotation's name

Returns

Type
Description
{T}
Annotation value
public string GetAnnotation(string name) #
Get a JSON representation of annotation's value

Parameters

Name
Type
Description
name
String
Annotation's name

Returns

Type
Description
String
JSON representation of annotation's value