Skip to main content

Class RestrictionDefinition

Represent a transition's restiction in a process scheme

Inheritance

↳ object

    RestrictionDefinition

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Model

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public class RestrictionDefinition

Properties

Type

Type of the restriction RestrictionType

Declaration
[JsonConverter(typeof(StringEnumConverter))]
public RestrictionType Type { get; set; }
Property value
TypeDescription
RestrictionType

Actor

Actor which allowed or restricted to trigger a transition

Declaration
public ActorDefinition Actor { get; set; }
Property value
TypeDescription
ActorDefinition

Methods

Create(string, ActorDefinition)

Create RestrictionDefinition object

Declaration
public static RestrictionDefinition Create(string type, ActorDefinition actor)
Parameters
TypeNameDescription
stringtypeType of the condition <xref href="OptimaJet.Workflow.Core.Model.ConditionType" data-throw-if-not-resolved="false"></xref>
ActorDefinitionactorActor which allowed or restricted to trigger a transition
Returns
TypeDescription
RestrictionDefinitionRestrictionDefinition object

Create(RestrictionType, ActorDefinition)

Create RestrictionDefinition object

Declaration
public static RestrictionDefinition Create(RestrictionType type, ActorDefinition actor)
Parameters
TypeNameDescription
RestrictionTypetypeType of the condition <xref href="OptimaJet.Workflow.Core.Model.ConditionType" data-throw-if-not-resolved="false"></xref>
ActorDefinitionactorActor which allowed or restricted to trigger a transition
Returns
TypeDescription
RestrictionDefinitionRestrictionDefinition object

Clone()

Declaration
public RestrictionDefinition Clone()
Returns
TypeDescription
RestrictionDefinition

Clone(List<ActorDefinition>)

Clones RestrictionDefinition object replacing references to the references to the specific objects

Declaration
public RestrictionDefinition Clone(List<ActorDefinition> actorDefinitions)
Parameters
TypeNameDescription
List<ActorDefinition>actorDefinitionsList of the actors to replace
Returns
TypeDescription
RestrictionDefinitionCloned RestrictionDefinition object

Extension Methods