Workflow Engine .NET  1.5
Static Public Member Functions | List of all members
OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension Class Reference

Static Public Member Functions

static WorkflowRuntime WithBuilder (this WorkflowRuntime runtime, IWorkflowBuilder builder)
 Сonfigures the runtime with specified builder IWorkflowBuilder More...
 
static WorkflowRuntime WithDefaultBuilder< TSchemeMedium > (this WorkflowRuntime runtime)
 Сonfigures the runtime with default (scheme in xml) builder IWorkflowBuilder More...
 
static WorkflowRuntime WithRuleProvider (this WorkflowRuntime runtime, IWorkflowRuleProvider ruleProvider)
 Сonfigures the runtime with specified rule provider IWorkflowRuleProvider More...
 
static WorkflowRuntime WithActionProvider (this WorkflowRuntime runtime, IWorkflowActionProvider workflowActionProvider)
 Сonfigures the runtime with specified action provider IWorkflowActionProvider More...
 
static WorkflowRuntime WithPersistenceProvider (this WorkflowRuntime runtime, IPersistenceProvider persistenceProvider)
 Сonfigures the runtime with specified persistence provider IPersistenceProvider More...
 
static WorkflowRuntime WithBus (this WorkflowRuntime runtime, IWorkflowBus bus)
 Сonfigures the runtime with specified workflow bus IWorkflowBus More...
 
static WorkflowRuntime AttachDeterminingParametersGetter (this WorkflowRuntime runtime, EventHandler< NeedDeterminingParametersEventArgs > determiningParametersGetter)
 Subscribe a event handler on OnNeedDeterminingParameters event to obtain parameters for creating a scheme of a process where a scheme was changed NeedDeterminingParametersEventArgs More...
 
static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn (this WorkflowRuntime runtime)
 Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to true More...
 
static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn (this WorkflowRuntime runtime, EventHandler< NeedDeterminingParametersEventArgs > determiningParametersGetter)
 Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to true and add event handler to OnNeedDeterminingParameters event WorkflowRuntime.OnNeedDeterminingParameters More...
 
static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOff (this WorkflowRuntime runtime)
 Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to false More...
 
static WorkflowRuntime Start (this WorkflowRuntime runtime)
 Start all workflow runtime services аnd compile global code actions More...
 
static WorkflowRuntime ColdStart (this WorkflowRuntime runtime)
 Start all workflow runtime services except timers аnd compile global code actions More...
 
static IWorkflowBuilder WithCache (this IWorkflowBuilder bulder, IParsedProcessCache cache)
 Сonfigures the workflow builder with specified cache for parced processes IParsedProcessCache More...
 
static IWorkflowBuilder WithDefaultCache (this IWorkflowBuilder bulder)
 Сonfigures the workflow builder with default in memory cache for parced processes IParsedProcessCache More...
 
static IWorkflowBuilder WithGenerator< TSchemeMedium > (this WorkflowBuilder< TSchemeMedium > bulder, IWorkflowGenerator< TSchemeMedium > generator)
 Сonfigures the workflow builder with specified workflow scheme generatorIWorkflowGenerator<TSchemeMedium> More...
 
static IWorkflowBuilder WithParser< TSchemeMedium > (this WorkflowBuilder< TSchemeMedium > bulder, IWorkflowParser< TSchemeMedium > parser)
 Сonfigures the workflow builder with specified workflow scheme parserIWorkflowParser<TSchemeMedium> More...
 
static IWorkflowBuilder WithShemePersistenceProvider< TSchemeMedium > (this WorkflowBuilder< TSchemeMedium > bulder, ISchemePersistenceProvider< TSchemeMedium > schemePersistenceProvider)
 Сonfigures the workflow builder with specified scheme persistence providerISchemePersistenceProvider<TSchemeMedium> More...
 
static WorkflowRuntime WithTimerManager (this WorkflowRuntime runtime, ITimerManager timerManager)
 Сonfigures the runtime with specified timer manager ITimerManager More...
 
static WorkflowRuntime EnableCodeActions (this WorkflowRuntime runtime)
 Enable code action compillation in runtime More...
 
static WorkflowRuntime CodeActionsDebugOn (this WorkflowRuntime runtime)
 Switch on compillation debug mode for code actions More...
 
static WorkflowRuntime DisableCodeActions (this WorkflowRuntime runtime)
 Disable code action compillation in runtime More...
 
static WorkflowRuntime RegisterAssemblyForCodeActions (this WorkflowRuntime runtime, Assembly assembly, bool ignoreForDesigner=false, Func< Type, bool > designerTypeFilter=null)
 Register reference on assembly for compilation of code actions More...
 
static WorkflowRuntime SetParameterSerializerSettings (this WorkflowRuntime runtime, JsonSerializerSettings settings)
 Changes a JsonSerializerSettings which are using to serialise parameters in runtime More...
 

Member Function Documentation

static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.AttachDeterminingParametersGetter ( this WorkflowRuntime  runtime,
EventHandler< NeedDeterminingParametersEventArgs determiningParametersGetter 
)
static

Subscribe a event handler on OnNeedDeterminingParameters event to obtain parameters for creating a scheme of a process where a scheme was changed NeedDeterminingParametersEventArgs

Parameters
runtimeThe instance of the runtime
determiningParametersGetterEvent handler NeedDeterminingParametersEventArgs
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.CodeActionsDebugOn ( this WorkflowRuntime  runtime)
static

Switch on compillation debug mode for code actions

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.ColdStart ( this WorkflowRuntime  runtime)
static

Start all workflow runtime services except timers аnd compile global code actions

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.DisableCodeActions ( this WorkflowRuntime  runtime)
static

Disable code action compillation in runtime

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.EnableCodeActions ( this WorkflowRuntime  runtime)
static

Enable code action compillation in runtime

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.RegisterAssemblyForCodeActions ( this WorkflowRuntime  runtime,
Assembly  assembly,
bool  ignoreForDesigner = false,
Func< Type, bool >  designerTypeFilter = null 
)
static

Register reference on assembly for compilation of code actions

Parameters
runtimeThe instance of the runtime
assemblyAssembly for register
ignoreForDesignerIf true then types from the assembly will not be registered in the designer
designerTypeFilterFunction which filters a types for designer
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.SetParameterSerializerSettings ( this WorkflowRuntime  runtime,
JsonSerializerSettings  settings 
)
static

Changes a JsonSerializerSettings which are using to serialise parameters in runtime

Parameters
runtimeThe instance of the runtime
settingsJsonSerializerSettings object
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.Start ( this WorkflowRuntime  runtime)
static

Start all workflow runtime services аnd compile global code actions

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOff ( this WorkflowRuntime  runtime)
static

Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to false

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn ( this WorkflowRuntime  runtime)
static

Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to true

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn ( this WorkflowRuntime  runtime,
EventHandler< NeedDeterminingParametersEventArgs determiningParametersGetter 
)
static

Set WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to true and add event handler to OnNeedDeterminingParameters event WorkflowRuntime.OnNeedDeterminingParameters

Parameters
runtimeThe instance of the runtime

///

Parameters
determiningParametersGetterEvent handler NeedDeterminingParametersEventArgs
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithActionProvider ( this WorkflowRuntime  runtime,
IWorkflowActionProvider  workflowActionProvider 
)
static

Сonfigures the runtime with specified action provider IWorkflowActionProvider

Parameters
runtimeThe instance of the runtime
workflowActionProviderThe instance of the action provider IWorkflowActionProvider
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithBuilder ( this WorkflowRuntime  runtime,
IWorkflowBuilder  builder 
)
static

Сonfigures the runtime with specified builder IWorkflowBuilder

Parameters
runtimeThe instance of the runtime
builderThe instance of the builder IWorkflowBuilder
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithBus ( this WorkflowRuntime  runtime,
IWorkflowBus  bus 
)
static

Сonfigures the runtime with specified workflow bus IWorkflowBus

Parameters
runtimeThe instance of the runtime
busThe instance of the workflow bus IWorkflowBus
Returns
Configured instance of the workflow runtime
static IWorkflowBuilder OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithCache ( this IWorkflowBuilder  bulder,
IParsedProcessCache  cache 
)
static

Сonfigures the workflow builder with specified cache for parced processes IParsedProcessCache

Parameters
bulderThe instance of the workflow builder
cacheThe instance of the cache for parced processes IParsedProcessCache
Returns
Configured instance of the workflow builder
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithDefaultBuilder< TSchemeMedium > ( this WorkflowRuntime  runtime)
static

Сonfigures the runtime with default (scheme in xml) builder IWorkflowBuilder

Parameters
runtimeThe instance of the runtime
Returns
Configured instance of the workflow runtime
Type Constraints
TSchemeMedium :class 
static IWorkflowBuilder OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithDefaultCache ( this IWorkflowBuilder  bulder)
static

Сonfigures the workflow builder with default in memory cache for parced processes IParsedProcessCache

Parameters
bulderThe instance of the workflow builder
Returns
Configured instance of the workflow builder
static IWorkflowBuilder OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithGenerator< TSchemeMedium > ( this WorkflowBuilder< TSchemeMedium >  bulder,
IWorkflowGenerator< TSchemeMedium >  generator 
)
static

Сonfigures the workflow builder with specified workflow scheme generatorIWorkflowGenerator<TSchemeMedium>

Parameters
bulderThe instance of the workflow builder
generatorThe instance of the workflow scheme generator IWorkflowGenerator<TSchemeMedium>
Returns
Configured instance of the workflow builder
Type Constraints
TSchemeMedium :class 
static IWorkflowBuilder OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithParser< TSchemeMedium > ( this WorkflowBuilder< TSchemeMedium >  bulder,
IWorkflowParser< TSchemeMedium >  parser 
)
static

Сonfigures the workflow builder with specified workflow scheme parserIWorkflowParser<TSchemeMedium>

Parameters
bulderThe instance of the workflow builder
parserThe instance of the workflow scheme parser IWorkflowParser<TSchemeMedium>
Returns
Configured instance of the workflow builder
Type Constraints
TSchemeMedium :class 
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithPersistenceProvider ( this WorkflowRuntime  runtime,
IPersistenceProvider  persistenceProvider 
)
static

Сonfigures the runtime with specified persistence provider IPersistenceProvider

Parameters
runtimeThe instance of the runtime
persistenceProviderThe instance of the persistence provider IPersistenceProvider
Returns
Configured instance of the workflow runtime
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithRuleProvider ( this WorkflowRuntime  runtime,
IWorkflowRuleProvider  ruleProvider 
)
static

Сonfigures the runtime with specified rule provider IWorkflowRuleProvider

Parameters
runtimeThe instance of the runtime
ruleProviderThe instance of the rule provider IWorkflowRuleProvider
Returns
Configured instance of the workflow runtime
static IWorkflowBuilder OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithShemePersistenceProvider< TSchemeMedium > ( this WorkflowBuilder< TSchemeMedium >  bulder,
ISchemePersistenceProvider< TSchemeMedium >  schemePersistenceProvider 
)
static

Сonfigures the workflow builder with specified scheme persistence providerISchemePersistenceProvider<TSchemeMedium>

Parameters
bulderThe instance of the workflow builder
schemePersistenceProviderThe instance of the scheme persistence provider ISchemePersistenceProvider<TSchemeMedium>
Returns
Configured instance of the workflow builder
Type Constraints
TSchemeMedium :class 
static WorkflowRuntime OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeConfigurationExtension.WithTimerManager ( this WorkflowRuntime  runtime,
ITimerManager  timerManager 
)
static

Сonfigures the runtime with specified timer manager ITimerManager

Parameters
runtimeThe instance of the runtime
timerManagerThe instance of the timer manager ITimerManager
Returns
Configured instance of the workflow runtime