Skip to main content

Class WorkflowRuntimeConfigurationExtension

Inheritance

↳ object

    WorkflowRuntimeConfigurationExtension

Inherited Members

Equals(object)

Equals(object, object)

GetHashCode()

GetType()

MemberwiseClone()

ReferenceEquals(object, object)

ToString()

Namespace: OptimaJet.Workflow.Core.Runtime

Assembly: OptimaJet.Workflow.Core.dll

Syntax
public static class WorkflowRuntimeConfigurationExtension

Methods

SetCancellationTokenHandling(WorkflowRuntime, CancellationTokenHandling)

Sets cancellation token handling type

Declaration
public static WorkflowRuntime SetCancellationTokenHandling(this WorkflowRuntime runtime, CancellationTokenHandling value)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
CancellationTokenHandlingvalueCancellation token handling type
Returns
TypeDescription
WorkflowRuntime

WithDefaultBuildSteps(IWorkflowBuilder, WorkflowRuntime)

Configures the builder with default build steps

Declaration
public static IWorkflowBuilder WithDefaultBuildSteps(this IWorkflowBuilder builder, WorkflowRuntime runtime)
Parameters
TypeNameDescription
IWorkflowBuilderbuilderThe instance of the builder
WorkflowRuntimeruntime
Returns
TypeDescription
IWorkflowBuilderConfigured instance of builder

WithBuilder(WorkflowRuntime, IWorkflowBuilder)

Configures the runtime with specified builder IWorkflowBuilder

Declaration
public static WorkflowRuntime WithBuilder(this WorkflowRuntime runtime, IWorkflowBuilder builder)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IWorkflowBuilderbuilderThe instance of the builder <xref href="OptimaJet.Workflow.Core.Builder.IWorkflowBuilder" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithDefaultBuilder<TSchemeMedium>(WorkflowRuntime)

Configures the runtime with default (scheme in xml) builder IWorkflowBuilder

Declaration
[Obsolete("Use runtime.WithBuilder configuration method")]
public static WorkflowRuntime WithDefaultBuilder<TSchemeMedium>(this WorkflowRuntime runtime) where TSchemeMedium : class
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithPersistenceProvider(WorkflowRuntime, IPersistenceProvider)

Configures the runtime with specified persistence provider IPersistenceProvider

Declaration
public static WorkflowRuntime WithPersistenceProvider(this WorkflowRuntime runtime, IPersistenceProvider persistenceProvider)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IPersistenceProviderpersistenceProviderThe instance of the persistence provider <xref href="OptimaJet.Workflow.Core.Persistence.IPersistenceProvider" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

AttachDeterminingParametersGetter(WorkflowRuntime, EventHandler<NeedDeterminingParametersEventArgs>)

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

Declaration
public static WorkflowRuntime AttachDeterminingParametersGetter(this WorkflowRuntime runtime, EventHandler<NeedDeterminingParametersEventArgs> determiningParametersGetter)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
EventHandler<NeedDeterminingParametersEventArgs>determiningParametersGetterEvent handler <xref href="OptimaJet.Workflow.Core.Runtime.NeedDeterminingParametersEventArgs" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(WorkflowRuntime)

Set !:WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to true

Declaration
public static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(WorkflowRuntime, EventHandler<NeedDeterminingParametersEventArgs>)

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

Declaration
public static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOn(this WorkflowRuntime runtime, EventHandler<NeedDeterminingParametersEventArgs> determiningParametersGetter)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
EventHandler<NeedDeterminingParametersEventArgs>determiningParametersGetterEvent handler <xref href="OptimaJet.Workflow.Core.Runtime.NeedDeterminingParametersEventArgs" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOff(WorkflowRuntime)

Set !:WorkflowRuntime.IsAutoUpdateSchemeBeforeGetAvailableCommands to false

Declaration
public static WorkflowRuntime SwitchAutoUpdateSchemeBeforeGetAvailableCommandsOff(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

StartAsync(WorkflowRuntime)

Start all workflow runtime services and compile global code actions

Declaration
public static Task<WorkflowRuntime> StartAsync(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
Task<WorkflowRuntime>Configured instance of the workflow runtime

Start(WorkflowRuntime)

Start all workflow runtime services and compile global code actions

Declaration
public static WorkflowRuntime Start(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

StartAsync(WorkflowRuntime, bool)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services and compile global code actions

Declaration
public static Task<(WorkflowRuntime runtime, Dictionary<string, string> compilerErrors)> StartAsync(this WorkflowRuntime runtime, bool ignoreNotCompiledGlobalActions)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
boolignoreNotCompiledGlobalActionsif true all compillation errors in the global codeactions will be ignored
Returns
TypeDescription
Task<(WorkflowRuntime runtime, Dictionary<string, string> compilerErrors)>Configured instance of the workflow runtime

Start(WorkflowRuntime, bool, out Dictionary<string, string>)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services and compile global code actions

Declaration
public static WorkflowRuntime Start(this WorkflowRuntime runtime, bool ignoreNotCompiledGlobalActions, out Dictionary<string, string> compilerErrors)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
boolignoreNotCompiledGlobalActionsif true all compillation errors in the global codeactions will be ignored
Dictionary<string, string>compilerErrorscompiler errors
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ColdStartAsync(WorkflowRuntime)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services except timers.

Declaration
public static Task<WorkflowRuntime> ColdStartAsync(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
Task<WorkflowRuntime>Configured instance of the workflow runtime

ColdStart(WorkflowRuntime)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services except timers.

Declaration
public static WorkflowRuntime ColdStart(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ColdStartAsync(WorkflowRuntime, bool)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services except timers.

Declaration
public static Task<(WorkflowRuntime runtime, Dictionary<string, string> compilerErrors)> ColdStartAsync(this WorkflowRuntime runtime, bool ignoreNotCompiledGlobalActions)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
boolignoreNotCompiledGlobalActions
Returns
TypeDescription
Task<(WorkflowRuntime runtime, Dictionary<string, string> compilerErrors)>Configured instance of the workflow runtime

ColdStart(WorkflowRuntime, bool, out Dictionary<string, string>)

System use only. The signature of this method can be changed without any notification. Start all workflow runtime services except timers.

Declaration
public static WorkflowRuntime ColdStart(this WorkflowRuntime runtime, bool ignoreNotCompiledGlobalActions, out Dictionary<string, string> compilerErrors)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
boolignoreNotCompiledGlobalActions
Dictionary<string, string>compilerErrors
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithCache(IWorkflowBuilder, IParsedProcessCache)

Configures the workflow builder with specified cache for parced processes IParsedProcessCache

Declaration
public static IWorkflowBuilder WithCache(this IWorkflowBuilder bulder, IParsedProcessCache cache)
Parameters
TypeNameDescription
IWorkflowBuilderbulderThe instance of the workflow builder
IParsedProcessCachecacheThe instance of the cache for parced processes <xref href="OptimaJet.Workflow.Core.Cache.IParsedProcessCache" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
IWorkflowBuilderConfigured instance of the workflow builder

WithDefaultCache(IWorkflowBuilder)

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

Declaration
public static IWorkflowBuilder WithDefaultCache(this IWorkflowBuilder bulder)
Parameters
TypeNameDescription
IWorkflowBuilderbulderThe instance of the workflow builder
Returns
TypeDescription
IWorkflowBuilderConfigured instance of the workflow builder

WithGenerator<TSchemeMedium>(WorkflowBuilder<TSchemeMedium>, IWorkflowGenerator<TSchemeMedium>)

Configures the workflow builder with specified workflow scheme generatorOptimaJet.Workflow.Core.Generator.IWorkflowGenerator%601

Declaration
public static IWorkflowBuilder WithGenerator<TSchemeMedium>(this WorkflowBuilder<TSchemeMedium> bulder, IWorkflowGenerator<TSchemeMedium> generator) where TSchemeMedium : class
Parameters
TypeNameDescription
WorkflowBuilder<<TSchemeMedium>>bulderThe instance of the workflow builder
IWorkflowGenerator<<TSchemeMedium>>generatorThe instance of the workflow scheme generator <xref href="OptimaJet.Workflow.Core.Generator.IWorkflowGenerator%601" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
IWorkflowBuilderConfigured instance of the workflow builder

WithParser<TSchemeMedium>(WorkflowBuilder<TSchemeMedium>, IWorkflowParser<TSchemeMedium>)

Configures the workflow builder with specified workflow scheme parserOptimaJet.Workflow.Core.Parser.IWorkflowParser%601

Declaration
public static IWorkflowBuilder WithParser<TSchemeMedium>(this WorkflowBuilder<TSchemeMedium> bulder, IWorkflowParser<TSchemeMedium> parser) where TSchemeMedium : class
Parameters
TypeNameDescription
WorkflowBuilder<<TSchemeMedium>>bulderThe instance of the workflow builder
IWorkflowParser<<TSchemeMedium>>parserThe instance of the workflow scheme parser <xref href="OptimaJet.Workflow.Core.Parser.IWorkflowParser%601" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
IWorkflowBuilderConfigured instance of the workflow builder

WithShemePersistenceProvider<TSchemeMedium>(WorkflowBuilder<TSchemeMedium>, ISchemePersistenceProvider<TSchemeMedium>)

Configures the workflow builder with specified scheme persistence providerOptimaJet.Workflow.Core.Persistence.ISchemePersistenceProvider%601

Declaration
public static IWorkflowBuilder WithShemePersistenceProvider<TSchemeMedium>(this WorkflowBuilder<TSchemeMedium> builder, ISchemePersistenceProvider<TSchemeMedium> schemePersistenceProvider) where TSchemeMedium : class
Parameters
TypeNameDescription
WorkflowBuilder<<TSchemeMedium>>builderThe instance of the workflow builder
ISchemePersistenceProvider<<TSchemeMedium>>schemePersistenceProviderThe instance of the scheme persistence provider <xref href="OptimaJet.Workflow.Core.Persistence.ISchemePersistenceProvider%601" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
IWorkflowBuilderConfigured instance of the workflow builder

WithTimerManager(WorkflowRuntime, ITimerManager)

Configures the runtime with specified timer manager ITimerManager

Declaration
public static WorkflowRuntime WithTimerManager(this WorkflowRuntime runtime, ITimerManager timerManager)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
ITimerManagertimerManagerThe instance of the timer manager <xref href="OptimaJet.Workflow.Core.Runtime.ITimerManager" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithCalendars(WorkflowRuntime, params ICalendar[])

Configures the runtime with specified work calendars

Declaration
public static WorkflowRuntime WithCalendars(this WorkflowRuntime runtime, params ICalendar[] calendars)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
OptimaJet.Workflow.Core.Runtime.Calendars.ICalendar[]calendarsWork calendar instances
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

SetDefaultCalendar(WorkflowRuntime, string)

Set default work calendar to runtime

Declaration
public static WorkflowRuntime SetDefaultCalendar(this WorkflowRuntime runtime, string calendarName)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
stringcalendarNameThe Work calendar name
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

EnableCodeActions(WorkflowRuntime)

Enable code action and expression compilation in runtime

Declaration
public static WorkflowRuntime EnableCodeActions(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithExpressionsCompilerOptions(WorkflowRuntime, ExpressionsCompilerOptions)

Configure the behaviour of ExpressionsCompiler

Declaration
public static WorkflowRuntime WithExpressionsCompilerOptions(this WorkflowRuntime runtime, ExpressionsCompilerOptions options)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
ExpressionsCompilerOptionsoptionsExpressions compiler options
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

CodeActionsDebugOn(WorkflowRuntime)

Switch on compilation debug mode for code actions

Declaration
public static WorkflowRuntime CodeActionsDebugOn(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

DisableCodeActions(WorkflowRuntime)

Disable code action compillation in runtime

Declaration
public static WorkflowRuntime DisableCodeActions(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

RegisterAssemblyForCodeActions(WorkflowRuntime, Assembly, bool, Func<Type, bool>)

Register reference on assembly for compilation of code actions

Declaration
public static WorkflowRuntime RegisterAssemblyForCodeActions(this WorkflowRuntime runtime, Assembly assembly, bool ignoreForDesigner = false, Func<Type, bool> designerTypeFilter = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
AssemblyassemblyAssembly for register
boolignoreForDesignerIf true then types from the assembly will not be registered in the designer
Func<Type, bool>designerTypeFilterFunction which filters a types for designer
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

SetParameterSerializerSettings(WorkflowRuntime, JsonSerializerSettings)

Changes a JsonSerializerSettings which are using to serialise parameters in runtime

Declaration
[Obsolete("Use ParametersSerializer.Settings to setup your custom Json serializer settings")]
public static WorkflowRuntime SetParameterSerializerSettings(this WorkflowRuntime runtime, JsonSerializerSettings settings)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
JsonSerializerSettingssettingsJsonSerializerSettings object
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

DeserializeParameter(WorkflowRuntime, string, Type)

Provides access to Workflow Engine .NET Persistence Process Parameters serialization mechanism

Declaration
[Obsolete("Use ParametersSerializer.Deserialize to deserialize a parameter")]
public static object DeserializeParameter(this WorkflowRuntime runtime, string serializedValue, Type parameterType)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
stringserializedValueSerialized value
TypeparameterTypeParameter type
Returns
TypeDescription
objectDeserialized object

SerializeParameter(WorkflowRuntime, object, Type)

Provides access to Workflow Engine .NET Persistence Process Parameters serialization mechanism

Declaration
[Obsolete("Use ParametersSerializer.Serialize to serialize a parameter")]
public static string SerializeParameter(this WorkflowRuntime runtime, object value, Type parameterType)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
objectvalueParameter value
TypeparameterTypeParameter type
Returns
TypeDescription
stringDeserialized object

SetExecutionSearchOrder(WorkflowRuntime, ExecutionSearchOrder)

Sets the order of the Action, Condition, or Rule search by name

Declaration
public static WorkflowRuntime SetExecutionSearchOrder(this WorkflowRuntime runtime, ExecutionSearchOrder order)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
ExecutionSearchOrderorder
Returns
TypeDescription
WorkflowRuntime

SetIgnoreMissingExecutionItems(WorkflowRuntime, bool)

Declaration
[Obsolete("If you are sure that your schemes do not mention nonexistent Actions, Conditions or Rules, do not use this setting. This setting is only for resolving possible compatibility issues and can be removed.")]
public static WorkflowRuntime SetIgnoreMissingExecutionItems(this WorkflowRuntime runtime, bool value)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
boolvalue
Returns
TypeDescription
WorkflowRuntime

WithRuleProvider(WorkflowRuntime, IWorkflowRuleProvider, List<string>)

Adds specified rule provider IWorkflowRuleProvider to the runtime

Declaration
public static WorkflowRuntime WithRuleProvider(this WorkflowRuntime runtime, IWorkflowRuleProvider ruleProvider, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IWorkflowRuleProviderruleProviderThe instance of the rule provider <xref href="OptimaJet.Workflow.Core.Runtime.IWorkflowRuleProvider" data-throw-if-not-resolved="false"></xref>
List<string>schemesThe list of schemes for which the provider is added
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearRuleProvider(WorkflowRuntime)

Resets Rule provider to default value (EmptyWorkflowRuleProvider)

Declaration
public static WorkflowRuntime ClearRuleProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithActionProvider(WorkflowRuntime, IWorkflowActionProvider, List<string>)

Adds specified action provider IWorkflowActionProvider in the runtime

Declaration
public static WorkflowRuntime WithActionProvider(this WorkflowRuntime runtime, IWorkflowActionProvider workflowActionProvider, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IWorkflowActionProviderworkflowActionProviderThe instance of the action provider <xref href="OptimaJet.Workflow.Core.Runtime.IWorkflowActionProvider" data-throw-if-not-resolved="false"></xref>
List<string>schemesThe list of schemes for which the provider is added
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearActionProvider(WorkflowRuntime)

Resets Action provider to default value (EmptyWorkflowActionProvider)

Declaration
public static WorkflowRuntime ClearActionProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithExternalParametersProvider(WorkflowRuntime, IWorkflowExternalParametersProvider, List<string>)

Adds specified external parameters provider IWorkflowExternalParametersProvider in the runtime

Declaration
public static WorkflowRuntime WithExternalParametersProvider(this WorkflowRuntime runtime, IWorkflowExternalParametersProvider externalParametersProvider, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IWorkflowExternalParametersProviderexternalParametersProviderThe instance of the external parameters provider <xref href="OptimaJet.Workflow.Core.Runtime.IWorkflowExternalParametersProvider" data-throw-if-not-resolved="false"></xref>
List<string>schemesThe list of schemes for which the provider is added
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearExternalParametersProvider(WorkflowRuntime)

Resets external parameters provider to default value (EmptyWorkflowExternalParametersProvider)

Declaration
public static WorkflowRuntime ClearExternalParametersProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithLocalizationProvider(WorkflowRuntime, ILocalizationProvider)

Adds specified ILocalizationProvider in the runtime

Declaration
public static WorkflowRuntime WithLocalizationProvider(this WorkflowRuntime runtime, ILocalizationProvider provider)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
ILocalizationProviderproviderThe instance of the implemented <xref href="OptimaJet.Workflow.Core.Runtime.ILocalizationProvider" data-throw-if-not-resolved="false"></xref>
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearLocalizationProvider(WorkflowRuntime)

Resets ILocalizationProvider to default value (null)

Declaration
public static WorkflowRuntime ClearLocalizationProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithDesignerAutocompleteProvider(WorkflowRuntime, IDesignerAutocompleteProvider, List<string>)

Adds specified autocomplete provider (only for the Designer) IDesignerAutocompleteProvider in the runtime

Declaration
public static WorkflowRuntime WithDesignerAutocompleteProvider(this WorkflowRuntime runtime, IDesignerAutocompleteProvider autocompleteProvider, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IDesignerAutocompleteProviderautocompleteProviderThe instance of the autocomplete provider <xref href="OptimaJet.Workflow.Core.Runtime.IDesignerAutocompleteProvider" data-throw-if-not-resolved="false"></xref>
List<string>schemesThe list of schemes for which the provider is added
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearDesignerAutocompleteProvider(WorkflowRuntime)

Resets Designer Autocomplete Provider to default value (null)

Declaration
public static WorkflowRuntime ClearDesignerAutocompleteProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithDesignerParameterFormatProvider(WorkflowRuntime, IDesignerParameterFormatProvider, List<string>)

Adds specified parameter format provider (only for the Designer) IDesignerParameterFormatProvider in the runtime

Declaration
public static WorkflowRuntime WithDesignerParameterFormatProvider(this WorkflowRuntime runtime, IDesignerParameterFormatProvider designerParameterFormatProvider, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeThe instance of the runtime
IDesignerParameterFormatProviderdesignerParameterFormatProviderThe instance of the parameter format provider <xref href="OptimaJet.Workflow.Core.Runtime.IDesignerParameterFormatProvider" data-throw-if-not-resolved="false"></xref>
List<string>schemesThe list of schemes for which the provider is added
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

ClearDesignerParameterFormatProvider(WorkflowRuntime)

Resets Designer Parameter Format Provider to default value (null)

Declaration
public static WorkflowRuntime ClearDesignerParameterFormatProvider(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured instance of the workflow runtime
Returns
TypeDescription
WorkflowRuntimeConfigured instance of the workflow runtime

WithPlugins(WorkflowRuntime, List<string>, params IWorkflowPlugin[])

Registers plugins in the workflow runtime

Declaration
public static WorkflowRuntime WithPlugins(this WorkflowRuntime runtime, List<string> schemes, params IWorkflowPlugin[] plugins)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured workflow runtime
List<string>schemesThe list of schemes for which the plugins is added
OptimaJet.Workflow.Plugins.IWorkflowPlugin[]plugins>Plugins instances
Returns
TypeDescription
WorkflowRuntimeConfigured workflow runtime

WithPlugin(WorkflowRuntime, IWorkflowPlugin, List<string>)

Registers plugin in the workflow runtimeS

Declaration
public static WorkflowRuntime WithPlugin(this WorkflowRuntime runtime, IWorkflowPlugin plugin, List<string> schemes = null)
Parameters
TypeNameDescription
WorkflowRuntimeruntimeConfigured workflow runtime
IWorkflowPluginpluginPlugin instance
List<string>schemesThe list of schemes for which the plugin is added
Returns
TypeDescription
WorkflowRuntimeConfigured workflow runtime

AsSingleServer(WorkflowRuntime)

Use this method when the runtime is running in a single-server environment.

Declaration
public static WorkflowRuntime AsSingleServer(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
Returns
TypeDescription
WorkflowRuntime

AsSingleServer(WorkflowRuntime, SingleServerSettings)

Use this method when the runtime is running in a single-server environment.

Declaration
public static WorkflowRuntime AsSingleServer(this WorkflowRuntime runtime, SingleServerSettings settings)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
SingleServerSettingssettings
Returns
TypeDescription
WorkflowRuntime

AsSingleServer(WorkflowRuntime, ISingleServerSettingsSource)

Use this method when the runtime is running in a single-server environment.

Declaration
public static WorkflowRuntime AsSingleServer(this WorkflowRuntime runtime, ISingleServerSettingsSource settingsSource)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
ISingleServerSettingsSourcesettingsSource
Returns
TypeDescription
WorkflowRuntime

WithProcessRestorer(WorkflowRuntime, IProcessRestorer)

Add the process restore that will run the procees after server failure.

Declaration
public static WorkflowRuntime WithProcessRestorer(this WorkflowRuntime runtime, IProcessRestorer restorer)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
IProcessRestorerrestorer
Returns
TypeDescription
WorkflowRuntime

WithServiceRunner(WorkflowRuntime, IWorkflowServiceRunner)

Declaration
public static WorkflowRuntime WithServiceRunner(this WorkflowRuntime runtime, IWorkflowServiceRunner workflowServiceRunner)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
IWorkflowServiceRunnerworkflowServiceRunner
Returns
TypeDescription
WorkflowRuntime

WithProcessLogger(WorkflowRuntime, IProcessLogProvider)

Declaration
public static WorkflowRuntime WithProcessLogger(this WorkflowRuntime runtime, IProcessLogProvider processLogger)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
IProcessLogProviderprocessLogger
Returns
TypeDescription
WorkflowRuntime

ClearProcessRestorers(WorkflowRuntime)

Clear process restorers

Declaration
public static WorkflowRuntime ClearProcessRestorers(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
Returns
TypeDescription
WorkflowRuntime

AsMultiServer(WorkflowRuntime, IMultiServerSettingsSource)

Use this method when the runtime is running in a multi-server environment.

Declaration
public static WorkflowRuntime AsMultiServer(this WorkflowRuntime runtime, IMultiServerSettingsSource settingsSource)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
IMultiServerSettingsSourcesettingsSource
Returns
TypeDescription
WorkflowRuntime

AsMultiServer(WorkflowRuntime)

Use this method when the runtime is running in a multi-server environment.

Declaration
public static WorkflowRuntime AsMultiServer(this WorkflowRuntime runtime)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
Returns
TypeDescription
WorkflowRuntime

WithRuntimeSettings(WorkflowRuntime, WorkflowRuntimeSettings)

Change runtime settings

Declaration
public static WorkflowRuntime WithRuntimeSettings(this WorkflowRuntime runtime, WorkflowRuntimeSettings settings)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
WorkflowRuntimeSettingssettings
Returns
TypeDescription
WorkflowRuntime

WithCustomActivities(WorkflowRuntime, List<ActivityBase>)

Registers custom activities in the workflow runtime

Declaration
public static WorkflowRuntime WithCustomActivities(this WorkflowRuntime runtime, List<ActivityBase> activities)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
List<ActivityBase>activities
Returns
TypeDescription
WorkflowRuntime

WithCustomConditions(WorkflowRuntime, List<FormBase>)

Registers custom conditions in the workflow runtime

Declaration
public static WorkflowRuntime WithCustomConditions(this WorkflowRuntime runtime, List<FormBase> conditions)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
List<FormBase>conditions
Returns
TypeDescription
WorkflowRuntime

WithCustomActivity(WorkflowRuntime, ActivityBase)

Registers custom activity in the workflow runtime

Declaration
public static WorkflowRuntime WithCustomActivity(this WorkflowRuntime runtime, ActivityBase activity)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
ActivityBaseactivity
Returns
TypeDescription
WorkflowRuntime

WithBPMNCustomDownload(WorkflowRuntime, BPMNCustomDownloadDelegate)

Declaration
public static WorkflowRuntime WithBPMNCustomDownload(this WorkflowRuntime runtime, BPMNCustomDownloadDelegate func)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
BPMNCustomDownloadDelegatefunc
Returns
TypeDescription
WorkflowRuntime

WithBPMNCustomUpload(WorkflowRuntime, BPMNCustomUploadDelegate)

Declaration
public static WorkflowRuntime WithBPMNCustomUpload(this WorkflowRuntime runtime, BPMNCustomUploadDelegate func)
Parameters
TypeNameDescription
WorkflowRuntimeruntime
BPMNCustomUploadDelegatefunc
Returns
TypeDescription
WorkflowRuntime