Skip to main content

Introducing Formengine - The New Formbuilder, try for FREE formengine.io.

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

Syntax
public interface ITransitionBuilder : IProcessDefinitionBuilder

Methods

Name(string)

Sets the name of the transition.

Declaration
ITransitionBuilder Name(string name)
Parameters
TypeNameDescription
stringnameThe name of the transition.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder From(ActivityDefinition activityDefinition)
Parameters
TypeNameDescription
ActivityDefinitionactivityDefinitionThe definition of the source activity.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder To(ActivityDefinition activityDefinition)
Parameters
TypeNameDescription
ActivityDefinitionactivityDefinitionThe definition of the destination activity.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder Auto()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder TriggeredByTimer(TimerDefinition timerDefinition)
Parameters
TypeNameDescription
TimerDefinitiontimerDefinitionThe timer definition that specifies when the transition is triggered.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionCommandBuilder TriggeredByCommand(CommandDefinition commandDefinition)
Parameters
TypeNameDescription
CommandDefinitioncommandDefinitionThe command definition that specifies the trigger.
Returns
TypeDescription
ITransitionCommandBuilderAn 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.

Declaration
ITransitionCommandBuilder UpdateCommandTrigger()
Returns
TypeDescription
ITransitionCommandBuilderAn 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.

Declaration
ITransitionBuilder Direct()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder Reverse()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder DirectionNotSpecified()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionConditionsBuilder Conditional()
Returns
TypeDescription
ITransitionConditionsBuilderAn 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.

Declaration
ITransitionBuilder Always()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder Otherwise()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder CreateOrUpdateAnnotation(string name, string value)
Parameters
TypeNameDescription
stringnameThe name of the annotation.
stringvalueThe value of the annotation in JSON format.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder CreateOrUpdateAnnotation(string name, object value)
Parameters
TypeNameDescription
stringnameThe name of the annotation.
objectvalueThe value of the annotation as an object.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder DeleteAnnotation(string name)
Parameters
TypeNameDescription
stringnameThe name of the annotation to delete.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder NotParallel()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionParallelStartBuilder ParallelStart()
Returns
TypeDescription
ITransitionParallelStartBuilderAn 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.

Declaration
ITransitionParallelFinalizeBuilder ParallelFinalize()
Returns
TypeDescription
ITransitionParallelFinalizeBuilderAn 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.

Declaration
ITransitionBuilder CreateCommentary(string comment)
Parameters
TypeNameDescription
stringcommentThe commentary text.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder AppendCommentary(string comment)
Parameters
TypeNameDescription
stringcommentThe additional commentary text.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder DeleteCommentary()
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder SetX(int? x)
Parameters
TypeNameDescription
int?xThe X coordinate.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder SetY(int? y)
Parameters
TypeNameDescription
int?yThe Y coordinate.
Returns
TypeDescription
ITransitionBuilderThe 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.

Declaration
ITransitionBuilder Ref(out TransitionDefinition transition)
Parameters
TypeNameDescription
TransitionDefinitiontransitionThe current transition definition.
Returns
TypeDescription
ITransitionBuilderThe current instance of <xref href="OptimaJet.Workflow.Core.Model.Builder.ITransitionBuilder" data-throw-if-not-resolved="false"></xref>.

Extension Methods