Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class TransitionDefinition

OptimaJet.Workflow.Core.Model.TransitionDefinition

Represent a transition in a process scheme

public class TransitionDefinition : BaseDefinition

Inheritance

Properties

Name
Type
InlinedFinalActivityName #
String
Final activity name in inlined scheme, may not be filled, then any final activity from inlined scheme will be taken
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.
UserComment #
String
Custom comment
WasInlined #
Boolean
Return true if the object was inlined.
From #
ActivityDefinition
Source activity
To #
ActivityDefinition
Destination activity
Classifier #
TransitionClassifier
Classifier of the direction of the transition
Trigger #
TriggerDefinition
Transition's trigger
Conditions #
List<ConditionDefinition>
List of conditions which are checked to execute transition
Restrictions #
List<RestrictionDefinition>
List of actors which are determine a user which can execute transition
AllowConcatenationType #
ConcatenationType
Type of concatenation for restrictions with the type equal "Allow" RestrictionType.Allow RestrictionDefinition.Type
RestrictConcatenationType #
ConcatenationType
Type of concatenation for restrictions with the type equal "Restrict" RestrictionType.Restrict RestrictionDefinition.Type
ConditionsConcatenationType #
ConcatenationType
Type of concatenation for conditions
Annotations #
List<Annotation>
A List of Annotation attached to this transition.
HasExpressions #
Boolean
Returns true if the transition has expressions
IsFork #
Boolean
Returns true if Transition initialized or finalized a fork (split, parallel branch). Fork transition is the initial or final transition of a subprocess
MergeViaSetState #
Boolean
Returns true if after a subprocess will be merged with a parent process new state of a parent process will be set forcibly
DisableParentStateControl #
Boolean
Applied if transition is fork. False - mean that subprocess will be dropped if parent process turned up in a state where subprocess can not exist. True - mean that subprocess control is responsibility of a developer.
SubprocessStartupType #
SubprocessStartupType
Defines how the subprocess starts
SubprocessInOutDefinition #
SubprocessInOutDefinition
Defines if the transition is start or final
SubprocessName #
String
Subprocess custom name
SubprocessId #
String
Subprocess identifier (must be GUID) or expression to get the subprocess identifier from parameters
SubprocessStartupParameterCopyStrategy #
SubprocessStartupParameterCopyStrategy
Determines how parameters from the parent process are passed to the subprocess at startup
SubprocessFinalizeParameterMergeStrategy #
SubprocessFinalizeParameterMergeStrategy
Determines how parameters from a subprocess are passed to the parent process when final merge
SubprocessSpecifiedParameters #
String
A list of parameters that are either passed or not passed to or from a subprocess (see SubprocessStartupParameterCopyStrategy or SubprocessFinalizeParameterMergeStrategy
SubprocessSpecifiedParametersList #
List<String>
IsAlwaysTransition #
Boolean
Returns true if condition type of the transition is equal "Always" ConditionType.Always
IsOtherwiseTransition #
Boolean
Returns true if condition type of the transition is equal "Otherwise" ConditionType.Otherwise
IsConditionTransition #
Boolean
Returns true if condition type of the transition is equal "Action" ConditionType.Action
ForkType #
TransitionForkType
Returns type of fork transition TransitionForkType

Methods

public TransitionDefinition SetSubprocessSettings(string subprocessName, string subprocessId, bool mergeViaSetState, bool disableParentStateControl, SubprocessInOutDefinition inOutDefinition, SubprocessStartupType startupType, SubprocessStartupParameterCopyStrategy startupParameterCopyStrategy, SubprocessFinalizeParameterMergeStrategy finalizeParameterMergeStrategy, string subprocessSpecifiedParameters) #
Sets subprocess specific parameters

Parameters

Name
Type
Description
subprocessName
String
Subprocess name or expression in order to calculate subprocess name
subprocessId
String
Subprocess identifier (must be GUID) or expression to get the subprocess identifier from parameters
mergeViaSetState
Boolean
Returns true if after a subprocess will be merged with a parent process new state of a parent process will be set forcibly
disableParentStateControl
Boolean
Applied if transition is fork. False - mean that subprocess will be dropped if parent process turned up in a state where subprocess can not exist. True - mean that subprocess control is responsibility of a developer
inOutDefinition
SubprocessInOutDefinition
Defines if the transition is start or final
startupType
SubprocessStartupType
Defines how the subprocess starts
startupParameterCopyStrategy
SubprocessStartupParameterCopyStrategy
Determines how parameters from the parent process are passed to the subprocess at startup
finalizeParameterMergeStrategy
SubprocessFinalizeParameterMergeStrategy
Determines how parameters from a subprocess are passed to the parent process when final merge
subprocessSpecifiedParameters
String
A list of parameters that are either passed or not passed to or from a subprocess (see SubprocessStartupParameterCopyStrategy or SubprocessFinalizeParameterMergeStrategy

Returns

Type
Description
TransitionDefinition
public static TransitionDefinition Create(ActivityDefinition from, ActivityDefinition to) #
Create TransitionDefinition object with NotSpecified classifier, Always condition, Auto trigger

Parameters

Name
Type
Description
from
ActivityDefinition
Source activity
to
ActivityDefinition
Destination activity

Returns

Type
Description
TransitionDefinition
TransitionDefinition object
public void AddRestriction(RestrictionDefinition restriction) #
Add restriction to restrictions list

Parameters

Name
Type
Description
restriction
RestrictionDefinition
RestrictionDefinition object
public TransitionDefinition Clone() #

Returns

Type
Description
TransitionDefinition
public TransitionDefinition Clone(List<ActorDefinition> actorDefinitions, List<CommandDefinition> commandDefinitions, List<ActivityDefinition> activityDefinitions, List<TimerDefinition> timerDefinitions) #
Clones TransitionDefinition object replacing references to the references to the specific objects

Parameters

Name
Type
Description
actorDefinitions
List<ActorDefinition>
List of the actors to replace
commandDefinitions
List<CommandDefinition>
List of the commands to replace
activityDefinitions
List<ActivityDefinition>
List of the activities to replace
timerDefinitions
List<TimerDefinition>
List of the timers to replace

Returns

Type
Description
TransitionDefinition
Cloned TransitionDefinition object
public T GetAnnotation<T>(string name) #
Get an annotation attached to this transition

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