![]() |
Workflow Engine .NET
2
|
Interface of a timer manager, which control timers functioning inside a workflow runtime More...
Public Member Functions | |
void | RequestTimerValue (ProcessInstance processInstance, ActivityDefinition activity=null) |
Sends request for timer value for all timer transitions that are outgoing from the CurrentActivity if timer value is equal 0 or -1 More... | |
IEnumerable< TransitionDefinition > | GetTransitionsForImmediateExecution (ProcessInstance processInstance, ActivityDefinition activity=null) |
Returns transitions triggered by a timer which value is equal to 0 More... | |
void | SetTimerValue (ProcessInstance processInstance, string timerName, DateTime newValue) |
Sets new value of named timer More... | |
Task | SetTimerValue (Guid processId, string timerName, DateTime newValue) |
Sets new value of named timer More... | |
void | ResetTimerValue (ProcessInstance processInstance, string timerName) |
Resets value of named timer More... | |
Task | ResetTimerValue (Guid processId, string timerName) |
Resets value of named timer More... | |
void | RegisterTimers (ProcessInstance processInstance) |
Register all timers for all outgouing timer transitions for current actvity of the specified process. All timers registered before which are present in transitions will be rewrited except timers marked as NotOverrideIfExists TimerDefinition More... | |
List< TimerToRegister > | GetTimersToRegister (ProcessDefinition processDefinition, string activityName) |
List< TimerToRegister > | GetTimersToRegister (ProcessInstance processInstance, string activityName) |
void | ClearAndRegisterTimers (ProcessInstance processInstance) |
Clear timers ClearTimers and then register new timers RegisterTimers More... | |
void | ClearTimers (ProcessInstance processInstance) |
Clear all registerd timers except present in outgouing timer transitions for current actvity of the specified process and marked as NotOverrideIfExists TimerDefinition More... | |
void | Init (WorkflowRuntime runtime) |
void | Start (int? timeout=null) |
Starts the timer More... | |
void | Stop (int? timeout=null) |
Stops the timer More... | |
void | Refresh () |
Refresh interval of the timer More... | |
Properties | |
string | ImmediateTimerValue [get] |
Value of Unspecified Timer which indicates that the timer transition will be executed immediately More... | |
string | InfinityTimerValue [get] |
Value of Unspecified Timer which indicates that the timer transition will be never executed More... | |
Events | |
EventHandler< NeedTimerValueEventArgs > | NeedTimerValue |
Raises when the timer value must be obtained More... | |
Interface of a timer manager, which control timers functioning inside a workflow runtime
void OptimaJet.Workflow.Core.Runtime.ITimerManager.ClearAndRegisterTimers | ( | ProcessInstance | processInstance | ) |
Clear timers ClearTimers and then register new timers RegisterTimers
processInstance | Process instance whose timers need to be cleared an registered |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.ClearTimers | ( | ProcessInstance | processInstance | ) |
Clear all registerd timers except present in outgouing timer transitions for current actvity of the specified process and marked as NotOverrideIfExists TimerDefinition
processInstance | Process instance whose timers need to be cleared |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
IEnumerable<TransitionDefinition> OptimaJet.Workflow.Core.Runtime.ITimerManager.GetTransitionsForImmediateExecution | ( | ProcessInstance | processInstance, |
ActivityDefinition | activity = null |
||
) |
Returns transitions triggered by a timer which value is equal to 0
processInstance | Process instance |
activity | Activity to get outbound transition, if null the CurrentActivity will be used |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.Refresh | ( | ) |
Refresh interval of the timer
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.RegisterTimers | ( | ProcessInstance | processInstance | ) |
Register all timers for all outgouing timer transitions for current actvity of the specified process. All timers registered before which are present in transitions will be rewrited except timers marked as NotOverrideIfExists TimerDefinition
processInstance | Process instance whose timers need to be registered |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.RequestTimerValue | ( | ProcessInstance | processInstance, |
ActivityDefinition | activity = null |
||
) |
Sends request for timer value for all timer transitions that are outgoing from the CurrentActivity if timer value is equal 0 or -1
activity | Activity to get outbound transition, if null the CurrentActivity will be used |
processInstance | Process instance |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.ResetTimerValue | ( | ProcessInstance | processInstance, |
string | timerName | ||
) |
Resets value of named timer
processInstance | Process instance |
timerName | Timer name in Scheme |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
Task OptimaJet.Workflow.Core.Runtime.ITimerManager.ResetTimerValue | ( | Guid | processId, |
string | timerName | ||
) |
Resets value of named timer
processId | Process id |
timerName | Timer name in Scheme |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.SetTimerValue | ( | ProcessInstance | processInstance, |
string | timerName, | ||
DateTime | newValue | ||
) |
Sets new value of named timer
processInstance | Process instance |
timerName | Timer name in Scheme |
newValue | New value of the timer |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
Task OptimaJet.Workflow.Core.Runtime.ITimerManager.SetTimerValue | ( | Guid | processId, |
string | timerName, | ||
DateTime | newValue | ||
) |
Sets new value of named timer
processId | Process id |
timerName | Timer name in Scheme |
newValue | New value of the timer |
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.Start | ( | int? | timeout = null | ) |
Starts the timer
param name="timeout">Wait timeout in milliseconds
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
void OptimaJet.Workflow.Core.Runtime.ITimerManager.Stop | ( | int? | timeout = null | ) |
Stops the timer
param name="timeout">Wait timeout in milliseconds
Implemented in OptimaJet.Workflow.Core.Runtime.TimerManager.
|
get |
Value of Unspecified Timer which indicates that the timer transition will be executed immediately
|
get |
Value of Unspecified Timer which indicates that the timer transition will be never executed
EventHandler<NeedTimerValueEventArgs> OptimaJet.Workflow.Core.Runtime.ITimerManager.NeedTimerValue |
Raises when the timer value must be obtained