Class ActivityBaseFromAction
OptimaJet.Workflow.Plugins.Activity.ActivityBaseFromAction
Namespace: OptimaJet.Workflow.Plugins.Activity
public class ActivityBaseFromAction : ActivityBaseType Hierarchy
- FormBase
- ActivityBase
- ActivityBaseFromAction Current type
- ActivityBase
Properties
public override bool Disabled { get; set; } #Gets a value, calculated by the callback supplied to the constructor, indicating whether this activity type is hidden from the workflow designer.
Exceptions
Type
Description
NotImplementedExceptionThe property setter is not implemented.
Remarks
Hiding an activity affects designer discovery only: it remains registered with the runtime, so existing scheme nodes can still execute it. The set accessor is not implemented by this base class.
public override List<CodeActionParameterDefinition> Parameters { get; set; } #Gets or sets the form parameter definitions.
public override BaseTemplate BaseTemplate { get; } #Gets the data model that the workflow designer uses with FormBase.Template when editing this activity.
Methods
public static ActivityBase Create<TEnum>(TEnum actionName, ActionDelegate action, Func<List<CodeActionParameterDefinition>> formats, string description, IDisableProvider disableProvider) where TEnum : struct #Parameters
Name
Type
Description
actionName{TEnum}actionActionDelegateformatsFunc<CodeActionParameterDefinition>descriptionStringdisableProviderIDisableProviderReturns
Type
Description
ActivityBasepublic 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
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
parametersDictionary<String, String>Runtime parameter values for the simulated operation, keyed by parameter name.
Returns
Type
Description
TaskA Task that represents the asynchronous simulation.