Interface ITransitionBuilder
Represents a builder for configuring a transition definition.
Inherited Members
IProcessDefinitionBuilder.CreateActor(string, string)
IProcessDefinitionBuilder.CreateOrUpdateActor(string, string)
IProcessDefinitionBuilder.UpdateActor(string)
IProcessDefinitionBuilder.DeleteActor(string)
IProcessDefinitionBuilder.CreateParameter(string, Type, ParameterPurpose)
IProcessDefinitionBuilder.CreateOrUpdateParameter(string, Type, ParameterPurpose)
IProcessDefinitionBuilder.UpdateParameter(string)
IProcessDefinitionBuilder.DeleteParameter(string)
IProcessDefinitionBuilder.CreateCommand(string)
IProcessDefinitionBuilder.CreateOrUpdateCommand(string)
IProcessDefinitionBuilder.UpdateCommand(string)
IProcessDefinitionBuilder.DeleteCommand(string)
IProcessDefinitionBuilder.CreateTimer(string)
IProcessDefinitionBuilder.CreateOrUpdateTimer(string)
IProcessDefinitionBuilder.UpdateTimer(string)
IProcessDefinitionBuilder.DeleteTimer(string)
IProcessDefinitionBuilder.CreateActivity(string)
IProcessDefinitionBuilder.AddActivity(ActivityDefinition)
IProcessDefinitionBuilder.CreateInlineActivity(string, string)
IProcessDefinitionBuilder.CreateOrUpdateActivity(string)
IProcessDefinitionBuilder.CreateOrUpdateInlineActivity(string, string)
IProcessDefinitionBuilder.UpdateActivity(string)
IProcessDefinitionBuilder.UpdateInlineActivity(string)
IProcessDefinitionBuilder.UpdateActivity(ActivityDefinition)
IProcessDefinitionBuilder.UpdateInlineActivity(ActivityDefinition)
IProcessDefinitionBuilder.DeleteActivity(string)
IProcessDefinitionBuilder.DeleteActivity(ActivityDefinition)
IProcessDefinitionBuilder.CreateTransition(string, ActivityDefinition, ActivityDefinition)
IProcessDefinitionBuilder.CreateOrUpdateTransition(string, ActivityDefinition, ActivityDefinition)
IProcessDefinitionBuilder.UpdateTransition(string)
IProcessDefinitionBuilder.UpdateTransition(TransitionDefinition)
IProcessDefinitionBuilder.DeleteTransition(string)
IProcessDefinitionBuilder.DeleteTransition(TransitionDefinition)
IProcessDefinitionBuilder.ForEachActivity(Action<IActivityBuilder>)
IProcessDefinitionBuilder.ForEachTransition(Action<ITransitionBuilder>)
IProcessDefinitionBuilder.Inlined()
IProcessDefinitionBuilder.NotInlined()
IProcessDefinitionBuilder.GetActivity(string, out ActivityDefinition)
IProcessDefinitionBuilder.GetTransition(string, out TransitionDefinition)
IProcessDefinitionBuilder.ProcessDefinition
Namespace: OptimaJet.Workflow.Core.Model.Builder
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic interface ITransitionBuilder : IProcessDefinitionBuilder
Methods
Name(string)
Sets the name of the transition.
DeclarationITransitionBuilder Name(string name)
Type | Name | Description |
---|---|---|
string | name | The name of the transition. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
From(ActivityDefinition)
Specifies the source activity from which the transition originates.
DeclarationITransitionBuilder From(ActivityDefinition activityDefinition)
Type | Name | Description |
---|---|---|
ActivityDefinition | activityDefinition | The definition of the source activity. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
To(ActivityDefinition)
Specifies the destination activity to which the transition leads.
DeclarationITransitionBuilder To(ActivityDefinition activityDefinition)
Type | Name | Description |
---|---|---|
ActivityDefinition | activityDefinition | The definition of the destination activity. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
Auto()
Configures the transition to be automatic, triggering without any external input.
DeclarationITransitionBuilder Auto()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
TriggeredByTimer(TimerDefinition)
Configures the transition to be triggered by a timer.
DeclarationITransitionBuilder TriggeredByTimer(TimerDefinition timerDefinition)
Type | Name | Description |
---|---|---|
TimerDefinition | timerDefinition | The timer definition that specifies when the transition is triggered. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
TriggeredByCommand(CommandDefinition)
Configures the transition to be triggered by a command.
DeclarationITransitionCommandBuilder TriggeredByCommand(CommandDefinition commandDefinition)
Type | Name | Description |
---|---|---|
CommandDefinition | commandDefinition | The command definition that specifies the trigger. |
Type | Description |
---|---|
ITransitionCommandBuilder | An instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionCommandBuilder" data-throw-if-not-resolved="false"></xref> for further command-specific configurations. |
UpdateCommandTrigger()
Updates the trigger of the transition to the specified command if the transition is currently triggered by a command.
DeclarationITransitionCommandBuilder UpdateCommandTrigger()
Type | Description |
---|---|
ITransitionCommandBuilder | An instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionCommandBuilder" data-throw-if-not-resolved="false"></xref> for further command-specific configurations. |
Direct()
Configures the transition to be direct, without reversing or changing direction.
DeclarationITransitionBuilder Direct()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
Reverse()
Configures the transition to be reversed, indicating the opposite direction.
DeclarationITransitionBuilder Reverse()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
DirectionNotSpecified()
Specifies that the direction of the transition is not specified.
DeclarationITransitionBuilder DirectionNotSpecified()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
Conditional()
Adds conditions to the transition, allowing it to be conditional based on certain criteria.
DeclarationITransitionConditionsBuilder Conditional()
Type | Description |
---|---|
ITransitionConditionsBuilder | An instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionConditionsBuilder" data-throw-if-not-resolved="false"></xref> for configuring the conditions. |
Always()
Sets the transition to always occur, regardless of conditions.
DeclarationITransitionBuilder Always()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
Otherwise()
Sets the transition to occur as an "otherwise" condition, typically when other conditions are not met.
DeclarationITransitionBuilder Otherwise()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
CreateOrUpdateAnnotation(string, string)
Creates or updates an annotation for the transition with a string value.
DeclarationITransitionBuilder CreateOrUpdateAnnotation(string name, string value)
Type | Name | Description |
---|---|---|
string | name | The name of the annotation. |
string | value | The value of the annotation in JSON format. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
CreateOrUpdateAnnotation(string, object)
Creates or updates an annotation for the transition with an object value.
DeclarationITransitionBuilder CreateOrUpdateAnnotation(string name, object value)
Type | Name | Description |
---|---|---|
string | name | The name of the annotation. |
object | value | The value of the annotation as an object. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
DeleteAnnotation(string)
Deletes an annotation from the transition.
DeclarationITransitionBuilder DeleteAnnotation(string name)
Type | Name | Description |
---|---|---|
string | name | The name of the annotation to delete. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
NotParallel()
Configures the transition to not be parallel, effectively disabling fork functionality.
DeclarationITransitionBuilder NotParallel()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
ParallelStart()
Begins configuration for starting a parallel subprocess.
DeclarationITransitionParallelStartBuilder ParallelStart()
Type | Description |
---|---|
ITransitionParallelStartBuilder | An instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionParallelStartBuilder" data-throw-if-not-resolved="false"></xref> for further configuration. |
ParallelFinalize()
Begins configuration for finalizing a parallel subprocess.
DeclarationITransitionParallelFinalizeBuilder ParallelFinalize()
Type | Description |
---|---|
ITransitionParallelFinalizeBuilder | An instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionParallelFinalizeBuilder" data-throw-if-not-resolved="false"></xref> for further configuration. |
CreateCommentary(string)
Creates a user commentary for the transition.
DeclarationITransitionBuilder CreateCommentary(string comment)
Type | Name | Description |
---|---|---|
string | comment | The commentary text. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
AppendCommentary(string)
Appends additional commentary to the existing user commentary for the transition.
DeclarationITransitionBuilder AppendCommentary(string comment)
Type | Name | Description |
---|---|---|
string | comment | The additional commentary text. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
DeleteCommentary()
Deletes the user commentary associated with the transition.
DeclarationITransitionBuilder DeleteCommentary()
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
SetX(int?)
Sets the X coordinate for the transition in the designer.
DeclarationITransitionBuilder SetX(int? x)
Type | Name | Description |
---|---|---|
int? | x | The X coordinate. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
SetY(int?)
Sets the Y coordinate for the transition in the designer.
DeclarationITransitionBuilder SetY(int? y)
Type | Name | Description |
---|---|---|
int? | y | The Y coordinate. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |
Ref(out TransitionDefinition)
Provides a reference to the current transition definition.
DeclarationITransitionBuilder Ref(out TransitionDefinition transition)
Type | Name | Description |
---|---|---|
TransitionDefinition | transition | The current transition definition. |
Type | Description |
---|---|
ITransitionBuilder | The current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>. |