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
Syntaxpublic class RestrictionDefinition
Properties
Type
Type of the restriction RestrictionType
Declaration[JsonConverter(typeof(StringEnumConverter))]
public RestrictionType Type { get; set; }
Type | Description |
---|---|
RestrictionType |
Actor
Actor which allowed or restricted to trigger a transition
Declarationpublic ActorDefinition Actor { get; set; }
Type | Description |
---|---|
ActorDefinition |
Methods
Create(string, ActorDefinition)
Create RestrictionDefinition object
Declarationpublic static RestrictionDefinition Create(string type, ActorDefinition actor)
Type | Name | Description |
---|---|---|
string | type | Type of the condition <xref href="OptimaJet.Workflow.Core.Model.ConditionType" data-throw-if-not-resolved="false"></xref> |
ActorDefinition | actor | Actor which allowed or restricted to trigger a transition |
Type | Description |
---|---|
RestrictionDefinition | RestrictionDefinition object |
Create(RestrictionType, ActorDefinition)
Create RestrictionDefinition object
Declarationpublic static RestrictionDefinition Create(RestrictionType type, ActorDefinition actor)
Type | Name | Description |
---|---|---|
RestrictionType | type | Type of the condition <xref href="OptimaJet.Workflow.Core.Model.ConditionType" data-throw-if-not-resolved="false"></xref> |
ActorDefinition | actor | Actor which allowed or restricted to trigger a transition |
Type | Description |
---|---|
RestrictionDefinition | RestrictionDefinition object |
Clone()
Declarationpublic RestrictionDefinition Clone()
Type | Description |
---|---|
RestrictionDefinition |
Clone(List<ActorDefinition>)
Clones RestrictionDefinition object replacing references to the references to the specific objects
Declarationpublic RestrictionDefinition Clone(List<ActorDefinition> actorDefinitions)
Type | Name | Description |
---|---|---|
List<ActorDefinition> | actorDefinitions | List of the actors to replace |
Type | Description |
---|---|
RestrictionDefinition | Cloned RestrictionDefinition object |