Class TriggerDefinition
Represent a transition's trigger in a process scheme
Inheritance
↳ object
↳ TriggerDefinition
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 TriggerDefinition
Constructors
TriggerDefinition(TriggerType)
Create TriggerDefinition object
Declarationpublic TriggerDefinition(TriggerType type)
Type | Name | Description |
---|---|---|
TriggerType | type | Type of the trigger <xref href="OptimaJet.Workflow.Core.Model.TriggerType" data-throw-if-not-resolved="false"></xref> |
Properties
Type
Type of the trigger TriggerType
Declaration[JsonConverter(typeof(StringEnumConverter))]
public TriggerType Type { get; set; }
Type | Description |
---|---|
TriggerType |
NameRef
Returns the name of the object in scheme which start the trigger
Declarationpublic string NameRef { get; }
Type | Description |
---|---|
string |
Command
Command which start the trigger if the type of the trigger is command TriggerType.Command
Declarationpublic CommandDefinition Command { get; set; }
Type | Description |
---|---|
CommandDefinition |
Timer
Timer which start the trigger if the type of the trigger is timer TriggerType.Timer
Declarationpublic TimerDefinition Timer { get; set; }
Type | Description |
---|---|
TimerDefinition |
Auto
Create the instance of TriggerDefinition object with auto trigger type TriggerType.Auto
Declarationpublic static TriggerDefinition Auto { get; }
Type | Description |
---|---|
TriggerDefinition |
Methods
Create(string)
Create TriggerDefinition object
Declarationpublic static TriggerDefinition Create(string type)
Type | Name | Description |
---|---|---|
string | type | Type of the trigger <xref href="OptimaJet.Workflow.Core.Model.TriggerType" data-throw-if-not-resolved="false"></xref> |
Type | Description |
---|---|
TriggerDefinition | TriggerDefinition object |
CreateTimerTrigger(TimerDefinition)
Creates timer trigger
Declarationpublic static TriggerDefinition CreateTimerTrigger(TimerDefinition timer)
Type | Name | Description |
---|---|---|
TimerDefinition | timer | Timer definition |
Type | Description |
---|---|
TriggerDefinition |
CreateCommandTrigger(CommandDefinition)
Creates command trigger
Declarationpublic static TriggerDefinition CreateCommandTrigger(CommandDefinition command)
Type | Name | Description |
---|---|---|
CommandDefinition | command | Command definition |
Type | Description |
---|---|
TriggerDefinition |
Clone()
Declarationpublic TriggerDefinition Clone()
Type | Description |
---|---|
TriggerDefinition |
Clone(List<CommandDefinition>, List<TimerDefinition>)
Clones TriggerDefinition object replacing references to the references to the specific objects
Declarationpublic TriggerDefinition Clone(List<CommandDefinition> commandDefinitions, List<TimerDefinition> timerDefinitions)
Type | Name | Description |
---|---|---|
List<CommandDefinition> | commandDefinitions | List of the commands to replace |
List<TimerDefinition> | timerDefinitions | List of the timers to replace |
Type | Description |
---|---|
TriggerDefinition | Cloned TriggerDefinition object |