Assembly: OptimaJet.Workflow.BpmnPlugin

Class BpmnActivityBase

OptimaJet.Workflow.BpmnPlugin.Elements.BpmnActivityBase

public abstract class BpmnActivityBase : ActivityBase

Type Hierarchy

Constructors

public BpmnActivityBase(Func<bool>? getDisabled = null) #

Parameters

Name
Type
Description
getDisabled
Func<Boolean>

Properties

public override string PluginName { get; } #
Gets the name of the plugin that contributes this activity type to the workflow designer.

Remarks

The value is included in the custom activity metadata and allows designer clients to group or otherwise identify plugin-provided activities. For example, the workflow designer places activities provided by the BPMN plugin on its BPMN palette tab. Built-in activities return null.

Methods

public override Task ExecutionAsync(WorkflowRuntime runtime, ProcessInstance processInstance, Dictionary<string, string> parameters, CancellationToken token) #
Executes the form operation during normal workflow execution.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowRuntime invoking the execution.
processInstance
ProcessInstance
The current ProcessInstance.
parameters
Dictionary<String, String>
Runtime parameter values for the executed form operation, keyed by parameter name.
token
CancellationToken
The CancellationToken passed from the execution pipeline.

Returns

Type
Description
Task
A Task that represents the asynchronous execution.
public override Task PreExecutionAsync(WorkflowRuntime runtime, ProcessInstance processInstance, Dictionary<string, string> parameters, CancellationToken token) #
Executes the form operation during pre-execution simulation.

Parameters

Name
Type
Description
runtime
WorkflowRuntime
The WorkflowRuntime invoking the simulation.
processInstance
ProcessInstance
The current ProcessInstance.
parameters
Dictionary<String, String>
Runtime parameter values for the simulated operation, keyed by parameter name.
token
CancellationToken
The CancellationToken passed from the execution pipeline.

Returns

Type
Description
Task
A Task that represents the asynchronous simulation.