Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Interface ITransitionCommandBuilder

OptimaJet.Workflow.Core.Model.Builder.ITransitionCommandBuilder

Represents a builder for configuring a transition command.

public interface ITransitionCommandBuilder : ITransitionBuilder, IProcessDefinitionBuilder

Methods

ITransitionCommandBuilder CreateRestriction(ActorDefinition actorDefinition, RestrictionType restrictionType) #
Creates a restriction for the specified actor with the given restriction type.

Parameters

Name
Type
Description
actorDefinition
ActorDefinition
The actor for which the restriction is being created.
restrictionType
RestrictionType
The type of the restriction.

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder CreateOrUpdateRestriction(ActorDefinition actorDefinition, RestrictionType restrictionType) #
Creates a new restriction for the specified actor with the given restriction type or updates an existing one.

Parameters

Name
Type
Description
actorDefinition
ActorDefinition
The actor for which the restriction is being created or updated.
restrictionType
RestrictionType
The type of the restriction.

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder UpdateRestriction(ActorDefinition actorDefinition, RestrictionType restrictionType) #
Updates the restriction type for the specified actor.

Parameters

Name
Type
Description
actorDefinition
ActorDefinition
The actor for which the restriction type is being updated.
restrictionType
RestrictionType
The new type of the restriction.

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder DeleteRestriction(ActorDefinition actorDefinition) #
Deletes the restriction for the specified actor.

Parameters

Name
Type
Description
actorDefinition
ActorDefinition
The actor for which the restriction is being deleted.

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder ConcatAllowByAnd() #
Sets the concatenation type for allowed restrictions to "And".

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder ConcatAllowByOr() #
Sets the concatenation type for allowed restrictions to "Or".

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder ConcatRestrictByAnd() #
Sets the concatenation type for restricted restrictions to "And".

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.
ITransitionCommandBuilder ConcatRestrictByOr() #
Sets the concatenation type for restricted restrictions to "Or".

Returns

Type
Description
ITransitionCommandBuilder
The current ITransitionCommandBuilder instance.