Class ActivityDefinition
OptimaJet.Workflow.Core.Model.ActivityDefinition
Represent an activity in a process scheme
Namespace: OptimaJet.Workflow.Core.Model
public class ActivityDefinition : BaseDefinition, IInlineActivity, IOrdinaryActivityInheritance
- System.Object
- BaseDefinition
Implemented Interfaces
Properties
Name
Type
OriginalName #StringIf object was inlined, you can get its original name from this property
OriginalSchemeCode #StringThe code of the scheme to which the inlined object originally belonged.
LastTimeInlineName #StringThe name of the inline activity instead of which the object was inlined last time.
FirstTimeInlineName #StringThe name of the inline activity instead of which the object was inlined first time.
WasInlined #BooleanReturn true if the object was inlined.
ActivityType #ActivityTypeType of the activity. Ordinary or Inline.
SchemeCode #StringInlined scheme name for inline activity.
State #StringName of the state
IsInitial #BooleanIf 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 #BooleanIf true specifies that the activity is final. The process is marked as finalized after execution of the activity marked as final.
IsForSetState #BooleanIf 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 #BooleanIf true specifies that if process scheme obsolete than Workflow Runtime will try upgrade it automatically if this activity is current
DisablePersistState #BooleanIf true specifies that the activity is not save state in database (WorkflowProcessInstance)
DisablePersistTransitionHistory #BooleanIf true specifies that the activity is not save state in database (WorkflowProcessTransitionHistory)
DisablePersistParameters #BooleanIf true specifies that the activity is not save state in database (WorkflowProcessInstancePersistence)
UserComment #StringCustom comment
HaveImplementation #BooleanSpecifies that activity have an implementation
HavePreExecutionImplementation #BooleanSpecifies 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 #ActivityTimeoutTimeout for execution ActivityTimeout
IdleTimeout #ActivityTimeoutTimeout for idle ActivityTimeout
ExceptionsHandlers #List<ActivityExceptionsHandler>Exceptions handler ActivityExceptionsHandler
IsState #BooleanSpecifies that state is assigned
NestingLevel #Nullable<Int32>Nesting level of subprocess, 0 - root process, 1-... -subprocesses, null - not assigned
CustomType #StringReturns 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
nameStringschemeCodeStringReturns
Type
Description
ActivityDefinitionpublic void AddAction(ActionDefinitionReference action) #Add ActionDefinitionReference to implementation list
Parameters
Name
Type
Description
actionActionDefinitionReferenceAction reference
public void AddPreExecutionAction(ActionDefinitionReference action) #Add ActionDefinitionReference to pre-execution implementation list
Parameters
Name
Type
Description
actionActionDefinitionReferenceAction reference
public ActivityDefinition Clone() #Returns
Type
Description
ActivityDefinitionpublic T GetAnnotation<T>(string name) #Get an annotation attached to this activity
Parameters
Name
Type
Description
nameStringAnnotation'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
nameStringAnnotation's name
Returns
Type
Description
StringJSON representation of annotation's value