WorkflowRuntimeSettings: Configuration
This section describes the fields that might be implemented in the class WorkflowRuntimeSettings
and also by
considering possible pre-execution scenarios to managing workflows through Workflow Engine.
Settings description
In the table below has been included the main values that can be used:
Name | Value type | Description |
---|---|---|
ExecutionSearchOrder | ExecutionSearchOrder | The order of the Action, Condition, or Rule which is searched by name. |
IsAutoUpdateSchemeBeforeGetAvailableCommands | Boolean | It enables automatic schema of a process update before getting the commands list if it is allowed in current activity. |
IgnoreMissingExecutionItems | Boolean | It is optional. In case of you are sure that your schemes do not mention nonexistent Actions, Conditions or Rules, do not use this setting. |
UseUtcDateTimeAsRuntimeTime | Boolean | Runtime use UTC date and time if true is set and Local date and time if false. |
SchemeParsingCulture | CultureInfo | Culture is defined for parsing some text parameters from scheme. Default option can be set to: 'InvariantCulture'. |
CancellationTokenHandling | CancellationTokenHandling | The way of handling: System.Threading.CancellationToken , after activity execution. |
PersistenceProviderQueryRetries | Int32 | The number of retries of a query that is allowed. |
PersistenceProviderQueryRetryDelay | TimeSpan | The delay between retries. |
MaxNumberOfPerformedActivities | Int64 | It is the maximum number of activities that can be executed. It can be used to protect your application from infinite loops. Any value less than 1 means unlimited. Unlimited by default. |
MaxPreExecutionTransitions | Int32 | The maximum number of transitions during pre-execution mode. |
LicenseSemaphoreTimeout | Int32 | It works only for licenses with thread limit. |
ParentProcessIdledWaitTimeout | Int32 | It is defined as the Timeout of waiting for unblocking (status = not Running) of the root process. |
This is the WorkflowRuntimeSettings
class which accepts the described options. This object contains the default values:
public WorkflowRuntimeSettings()
{
ExecutionSearchOrder = ExecutionSearchOrder.LocalGlobalProvider;
IsAutoUpdateSchemeBeforeGetAvailableCommands = false;
IgnoreMissingExecutionItems = false;
UseUtcDateTimeAsRuntimeTime = false;
SchemeParsingCulture = CultureInfo.InvariantCulture;
CancellationTokenHandling = CancellationTokenHandling.Ignore;
PersistenceProviderQueryRetries = 3;
PersistenceProviderQueryRetryDelay = TimeSpan.FromMilliseconds(100);
MaxNumberOfPerformedActivities = Int64.MaxValue;
MaxPreExecutionTransitions = 100;
LicenseSemaphoreTimeout = 10000;
ParentProcessIdledWaitTimeout = 30000;
};