Class WorkflowRuntimeBulkApi
OptimaJet.Workflow.Core.Runtime.WorkflowRuntimeBulkApi
Runtime extension API for creating process instances in bulk.
Namespace: OptimaJet.Workflow.Core.Runtime
public static class WorkflowRuntimeBulkApiMethods
public static void BulkCreateInstance(this WorkflowRuntime runtime, BulkCreateInstancePrams createInstanceParameters, BulkOperationOptions options = null) #Creates the process instances described by one bulk request and runs any initial execution required by their scheme.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersBulkCreateInstancePramsThe bulk request that defines the process scheme, IDs, and parameters.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.
public static void BulkCreateInstance(this WorkflowRuntime runtime, List<BulkCreateInstancePrams> createInstanceParameters, BulkOperationOptions options = null) #Creates the process instances described by multiple bulk requests and runs any initial execution required by their schemes.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersList<BulkCreateInstancePrams>The collection of bulk requests to process.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.
public static Task BulkCreateInstanceAsync(this WorkflowRuntime runtime, BulkCreateInstancePrams createInstanceParameters, BulkOperationOptions options = null) #Asynchronously creates the process instances described by one bulk request and runs any initial execution required by their scheme.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersBulkCreateInstancePramsThe bulk request that defines the process scheme, IDs, and parameters.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Returns
Type
Description
TaskA task that represents the asynchronous bulk create operation.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.
public static Task BulkCreateInstanceAsync(this WorkflowRuntime runtime, List<BulkCreateInstancePrams> createInstanceParameters, BulkOperationOptions options = null) #Asynchronously creates the process instances described by multiple bulk requests and runs any initial execution required by their schemes.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersList<BulkCreateInstancePrams>The collection of bulk requests to process.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Returns
Type
Description
TaskA task that represents the asynchronous bulk create operation.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.
public static Task BulkCreateInstanceAsync(this WorkflowRuntime runtime, BulkCreateInstancePrams createInstanceParameters, CancellationToken token, BulkOperationOptions options = null) #Asynchronously creates the process instances described by one bulk request and runs any initial execution required by their scheme.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersBulkCreateInstancePramsThe bulk request that defines the process scheme, IDs, and parameters.
tokenCancellationTokenA token used to observe cancellation requests.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Returns
Type
Description
TaskA task that represents the asynchronous bulk create operation.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.
public static Task BulkCreateInstanceAsync(this WorkflowRuntime runtime, List<BulkCreateInstancePrams> createInstanceParameters, CancellationToken token, BulkOperationOptions options = null) #Asynchronously creates the process instances described by multiple bulk requests and runs any initial execution required by their schemes.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime used to execute the bulk operation.
createInstanceParametersList<BulkCreateInstancePrams>The collection of bulk requests to process.
tokenCancellationTokenA token used to observe cancellation requests.
optionsBulkOperationOptionsOptional bulk options. If null, parallelism defaults to Environment.ProcessorCount.
Returns
Type
Description
TaskA task that represents the asynchronous bulk create operation.
Exceptions
Type
Description
NotSupportedExceptionThrown if the current persistence provider does not support bulk operations.