Class BpmnActivityBase
OptimaJet.Workflow.BpmnPlugin.Elements.BpmnActivityBase
Namespace: OptimaJet.Workflow.BpmnPlugin.Elements
public abstract class BpmnActivityBase : ActivityBaseType Hierarchy
Constructors
public BpmnActivityBase(Func<bool>? getDisabled = null) #Parameters
Name
Type
Description
getDisabledFunc<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
runtimeWorkflowRuntimeThe WorkflowRuntime invoking the execution.
processInstanceProcessInstanceThe current ProcessInstance.
parametersDictionary<String, String>Runtime parameter values for the executed form operation, keyed by parameter name.
Returns
Type
Description
TaskA 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
runtimeWorkflowRuntimeThe WorkflowRuntime invoking the simulation.
processInstanceProcessInstanceThe current ProcessInstance.
parametersDictionary<String, String>Runtime parameter values for the simulated operation, keyed by parameter name.
Returns
Type
Description
TaskA Task that represents the asynchronous simulation.