Class TransitionDefinition
Represent a transition in a process scheme
Inheritance
↳ object
↳ BaseDefinition
↳ TransitionDefinition
Inherited Members
BaseDefinition.DesignerSettings
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Model
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class TransitionDefinition : BaseDefinition
Properties
InlinedFinalActivityName
Final activity name in inlined scheme, may not be filled, then any final activity from inlined scheme will be taken
Declarationpublic string InlinedFinalActivityName { get; set; }
Type | Description |
---|---|
string |
OriginalName
If object was inlined, you can get its original name from this property
Declarationpublic string OriginalName { get; set; }
Type | Description |
---|---|
string |
OriginalSchemeCode
The code of the scheme to which the inlined object originally belonged.
Declarationpublic string OriginalSchemeCode { get; set; }
Type | Description |
---|---|
string |
LastTimeInlineName
The name of the inline activity instead of which the object was inlined.last time
Declarationpublic string LastTimeInlineName { get; set; }
Type | Description |
---|---|
string |
FirstTimeInlineName
The name of the inline activity instead of which the object was inlined first time.
Declarationpublic string FirstTimeInlineName { get; set; }
Type | Description |
---|---|
string |
UserComment
Custom comment
Declarationpublic string UserComment { get; set; }
Type | Description |
---|---|
string |
WasInlined
Return true if the object was inlined.
Declarationpublic bool WasInlined { get; set; }
Type | Description |
---|---|
bool |
From
Source activity
Declarationpublic ActivityDefinition From { get; set; }
Type | Description |
---|---|
ActivityDefinition |
To
Destination activity
Declarationpublic ActivityDefinition To { get; set; }
Type | Description |
---|---|
ActivityDefinition |
Classifier
Classifier of the direction of the transition
Declaration[JsonConverter(typeof(StringEnumConverter))]
public TransitionClassifier Classifier { get; set; }
Type | Description |
---|---|
TransitionClassifier |
Trigger
Transition's trigger
Declarationpublic TriggerDefinition Trigger { get; set; }
Type | Description |
---|---|
TriggerDefinition |
Conditions
List of conditions which are checked to execute transition
Declarationpublic List<ConditionDefinition> Conditions { get; set; }
Type | Description |
---|---|
List<ConditionDefinition> |
Restrictions
List of actors which are determine a user which can execute transition
Declarationpublic List<RestrictionDefinition> Restrictions { get; set; }
Type | Description |
---|---|
List<RestrictionDefinition> |
AllowConcatenationType
Type of concatenation for restrictions with the type equal "Allow" RestrictionType.Allow RestrictionDefinition.Type
Declaration[JsonConverter(typeof(StringEnumConverter))]
public ConcatenationType AllowConcatenationType { get; set; }
Type | Description |
---|---|
ConcatenationType |
RestrictConcatenationType
Type of concatenation for restrictions with the type equal "Restrict" RestrictionType.Restrict RestrictionDefinition.Type
Declaration[JsonConverter(typeof(StringEnumConverter))]
public ConcatenationType RestrictConcatenationType { get; set; }
Type | Description |
---|---|
ConcatenationType |
ConditionsConcatenationType
Type of concatenation for conditions
Declaration[JsonConverter(typeof(StringEnumConverter))]
public ConcatenationType ConditionsConcatenationType { get; set; }
Type | Description |
---|---|
ConcatenationType |
Annotations
A List of Annotation attached to this transition.
Declarationpublic List<Annotation> Annotations { get; set; }
Type | Description |
---|---|
List<Annotation> |
HasExpressions
Returns true if the transition has expressions
Declaration[JsonIgnore]
public bool HasExpressions { get; }
Type | Description |
---|---|
bool |
IsFork
Returns true if Transition initialized or finalized a fork (split, parallel branch). Fork transition is the initial or final transition of a subprocess
Declarationpublic bool IsFork { get; set; }
Type | Description |
---|---|
bool |
MergeViaSetState
Returns true if after a subprocess will be merged with a parent process new state of a parent process will be set forcibly
Declarationpublic bool MergeViaSetState { get; set; }
Type | Description |
---|---|
bool |
DisableParentStateControl
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.
Declarationpublic bool DisableParentStateControl { get; set; }
Type | Description |
---|---|
bool |
SubprocessStartupType
Defines how the subprocess starts
Declaration[JsonConverter(typeof(StringEnumConverter))]
public SubprocessStartupType SubprocessStartupType { get; set; }
Type | Description |
---|---|
SubprocessStartupType |
SubprocessInOutDefinition
Defines if the transition is start or final
Declaration[JsonConverter(typeof(StringEnumConverter))]
public SubprocessInOutDefinition SubprocessInOutDefinition { get; set; }
Type | Description |
---|---|
SubprocessInOutDefinition |
SubprocessName
Subprocess custom name
Declarationpublic string SubprocessName { get; set; }
Type | Description |
---|---|
string |
SubprocessId
Subprocess identifier (must be GUID) or expression to get the subprocess identifier from parameters
Declarationpublic string SubprocessId { get; set; }
Type | Description |
---|---|
string |
SubprocessStartupParameterCopyStrategy
Determines how parameters from the parent process are passed to the subprocess at startup
Declaration[JsonConverter(typeof(StringEnumConverter))]
public SubprocessStartupParameterCopyStrategy SubprocessStartupParameterCopyStrategy { get; set; }
Type | Description |
---|---|
SubprocessStartupParameterCopyStrategy |
SubprocessFinalizeParameterMergeStrategy
Determines how parameters from a subprocess are passed to the parent process when final merge
Declaration[JsonConverter(typeof(StringEnumConverter))]
public SubprocessFinalizeParameterMergeStrategy SubprocessFinalizeParameterMergeStrategy { get; set; }
Type | Description |
---|---|
SubprocessFinalizeParameterMergeStrategy |
SubprocessSpecifiedParameters
A list of parameters that are either passed or not passed to or from a subprocess (see SubprocessStartupParameterCopyStrategy or SubprocessFinalizeParameterMergeStrategy
Declarationpublic string SubprocessSpecifiedParameters { get; set; }
Type | Description |
---|---|
string |
SubprocessSpecifiedParametersList
Declarationpublic List<string> SubprocessSpecifiedParametersList { get; }
Type | Description |
---|---|
List<string> |
IsAlwaysTransition
Returns true if condition type of the transition is equal "Always" ConditionType.Always
Declarationpublic bool IsAlwaysTransition { get; }
Type | Description |
---|---|
bool |
IsOtherwiseTransition
Returns true if condition type of the transition is equal "Otherwise" ConditionType.Otherwise
Declarationpublic bool IsOtherwiseTransition { get; }
Type | Description |
---|---|
bool |
IsConditionTransition
Returns true if condition type of the transition is equal "Action" ConditionType.Action
Declarationpublic bool IsConditionTransition { get; }
Type | Description |
---|---|
bool |
ForkType
Returns type of fork transition TransitionForkType
Declaration[JsonConverter(typeof(StringEnumConverter))]
public TransitionForkType ForkType { get; }
Type | Description |
---|---|
TransitionForkType |
Methods
Create(string, TransitionClassifier, ConcatenationType, ConcatenationType, ConcatenationType, ActivityDefinition, ActivityDefinition, TriggerDefinition, List<ConditionDefinition>)
Create TransitionDefinition object
Declarationpublic static TransitionDefinition Create(string name, TransitionClassifier classifier, ConcatenationType allowRestrictionsConcatenationType, ConcatenationType denyRestrictionsConcatenationType, ConcatenationType conditionsConcatenationType, ActivityDefinition from, ActivityDefinition to, TriggerDefinition trigger, List<ConditionDefinition> conditions)
Type | Name | Description |
---|---|---|
string | name | Name of the transition |
TransitionClassifier | classifier | |
ConcatenationType | allowRestrictionsConcatenationType | Type of concatenation for restrictions with the type equal "Allow" <xref href="OptimaJet.Workflow.Core.Model.RestrictionType.Allow" data-throw-if-not-resolved="false"></xref> <xref href="OptimaJet.Workflow.Core.Model.RestrictionDefinition.Type" data-throw-if-not-resolved="false"></xref> |
ConcatenationType | denyRestrictionsConcatenationType | Type of concatenation for restrictions with the type equal "Restrict" <xref href="OptimaJet.Workflow.Core.Model.RestrictionType.Restrict" data-throw-if-not-resolved="false"></xref> <xref href="OptimaJet.Workflow.Core.Model.RestrictionDefinition.Type" data-throw-if-not-resolved="false"></xref> |
ConcatenationType | conditionsConcatenationType | Type of concatenation for conditions |
ActivityDefinition | from | Source activity |
ActivityDefinition | to | Destination activity |
TriggerDefinition | trigger | Transition's trigger |
List<ConditionDefinition> | conditions | List of conditions which are checked to execute transition |
Type | Description |
---|---|
TransitionDefinition | TransitionDefinition object |
SetSubprocessSettings(string, string, bool, bool, SubprocessInOutDefinition, SubprocessStartupType, SubprocessStartupParameterCopyStrategy, SubprocessFinalizeParameterMergeStrategy, string)
Sets subprocess specific parameters
Declarationpublic TransitionDefinition SetSubprocessSettings(string subprocessName, string subprocessId, bool mergeViaSetState, bool disableParentStateControl, SubprocessInOutDefinition inOutDefinition, SubprocessStartupType startupType, SubprocessStartupParameterCopyStrategy startupParameterCopyStrategy, SubprocessFinalizeParameterMergeStrategy finalizeParameterMergeStrategy, string subprocessSpecifiedParameters)
Type | Name | Description |
---|---|---|
string | subprocessName | Subprocess name or expression in order to calculate subprocess name |
string | subprocessId | Subprocess identifier (must be GUID) or expression to get the subprocess identifier from parameters |
bool | mergeViaSetState | Returns true if after a subprocess will be merged with a parent process new state of a parent process will be set forcibly |
bool | disableParentStateControl | 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 |
SubprocessInOutDefinition | inOutDefinition | Defines if the transition is start or final |
SubprocessStartupType | startupType | Defines how the subprocess starts |
SubprocessStartupParameterCopyStrategy | startupParameterCopyStrategy | Determines how parameters from the parent process are passed to the subprocess at startup |
SubprocessFinalizeParameterMergeStrategy | finalizeParameterMergeStrategy | Determines how parameters from a subprocess are passed to the parent process when final merge |
string | subprocessSpecifiedParameters | A list of parameters that are either passed or not passed to or from a subprocess (see SubprocessStartupParameterCopyStrategy or SubprocessFinalizeParameterMergeStrategy |
Type | Description |
---|---|
TransitionDefinition |
Create(ActivityDefinition, ActivityDefinition)
Create TransitionDefinition object with NotSpecified classifier, Always condition, Auto trigger
Declarationpublic static TransitionDefinition Create(ActivityDefinition from, ActivityDefinition to)
Type | Name | Description |
---|---|---|
ActivityDefinition | from | Source activity |
ActivityDefinition | to | Destination activity |
Type | Description |
---|---|
TransitionDefinition | TransitionDefinition object |
AddRestriction(RestrictionDefinition)
Add restriction to restrictions list
Declarationpublic void AddRestriction(RestrictionDefinition restriction)
Type | Name | Description |
---|---|---|
RestrictionDefinition | restriction | RestrictionDefinition object |
Clone()
Declarationpublic TransitionDefinition Clone()
Type | Description |
---|---|
TransitionDefinition |
Clone(List<ActorDefinition>, List<CommandDefinition>, List<ActivityDefinition>, List<TimerDefinition>)
Clones TransitionDefinition object replacing references to the references to the specific objects
Declarationpublic TransitionDefinition Clone(List<ActorDefinition> actorDefinitions, List<CommandDefinition> commandDefinitions, List<ActivityDefinition> activityDefinitions, List<TimerDefinition> timerDefinitions)
Type | Name | Description |
---|---|---|
List<ActorDefinition> | actorDefinitions | List of the actors to replace |
List<CommandDefinition> | commandDefinitions | List of the commands to replace |
List<ActivityDefinition> | activityDefinitions | List of the activities to replace |
List<TimerDefinition> | timerDefinitions | List of the timers to replace |
Type | Description |
---|---|
TransitionDefinition | Cloned TransitionDefinition object |
GetAnnotation<T>(string)
Get an annotation attached to this transition
Declarationpublic T GetAnnotation<T>(string name)
Type | Name | Description |
---|---|---|
string | name | Annotation's name |
Type | Description |
---|---|
{T} | Annotation value |
GetAnnotation(string)
Get a JSON representation of annotation's value
Declarationpublic string GetAnnotation(string name)
Type | Name | Description |
---|---|---|
string | name | Annotation's name |
Type | Description |
---|---|
string | JSON representation of annotation's value |