Assembly: OptimaJet.Workflow.Core

Class WorkflowActionAndDesignerParameterFormatProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>

OptimaJet.Workflow.Plugins.CustomWorkflowProviders.WorkflowActionAndDesignerParameterFormatProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>

public abstract class WorkflowActionAndDesignerParameterFormatProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync> : WorkflowActionProvider<TEnumActions, TEnumActionsAsync, TEnumConditions, TEnumConditionsAsync>, ICustomWorkflowActionProvider, IWorkflowActionProvider, IDisableProvider, ICustomDesignerParameterFormatProvider, IDesignerParameterFormatProvider where TEnumActions : struct where TEnumActionsAsync : struct where TEnumConditions : struct where TEnumConditionsAsync : struct

Type Hierarchy

Methods

protected string GetParameter<TParameter>(Dictionary<string, string> parameters, TParameter parameterName) where TParameter : struct #

Parameters

Name
Type
Description
parameters
Dictionary<String, String>
parameterName
{TParameter}

Returns

Type
Description
String
protected string GetParameterOrDefault<TParameter>(Dictionary<string, string> parameters, TParameter parameterName, string defaultValue, bool canBeNullOrEmpty = true) where TParameter : struct #

Parameters

Name
Type
Description
parameters
Dictionary<String, String>
parameterName
{TParameter}
defaultValue
String
canBeNullOrEmpty
Boolean

Returns

Type
Description
String
public virtual List<CodeActionParameterDefinition> GetFormat(CodeActionType type, string name, string schemeCode) #
Gets the ordered form-field definitions for a named action, condition, or rule.

Parameters

Name
Type
Description
name
String
The action, condition, or rule name selected in the Designer.
schemeCode
String
The current process scheme code, which can be used to provide scheme-specific fields. The value may be null when the format is requested without a process scheme context.

Returns

Type
Description
List<CodeActionParameterDefinition>
An ordered list containing one CodeActionParameterDefinition per form field. Returning null or an empty list indicates that no structured parameter editor is defined; the Designer then uses its raw JSON editor.

Fields

protected Dictionary<TEnumActions, Func<List<CodeActionParameterDefinition>>> ActionsFormats #
protected Dictionary<TEnumActionsAsync, Func<List<CodeActionParameterDefinition>>> ActionsAsyncFormats #
protected Dictionary<TEnumConditions, Func<List<CodeActionParameterDefinition>>> ConditionsFormats #
protected Dictionary<TEnumConditionsAsync, Func<List<CodeActionParameterDefinition>>> ConditionsAsyncFormats #