Class ExpressionsUtils
OptimaJet.Workflow.Core.CodeActions.ExpressionsUtils
Resolves the compiled expression invokers and on-demand expression cache used by a process scheme.
Namespace: OptimaJet.Workflow.Core.CodeActions
public static class ExpressionsUtilsMethods
public static Task<ExpressionsInvoker> GetExpressionInvokerAsync(WorkflowRuntime runtime, ProcessDefinition processDefinition) #Gets the ExpressionsInvoker that evaluates the compiled ConditionType.Expression conditions for transitions in the specified process scheme.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime whose WorkflowRuntime.Builder loads the root process scheme when
processDefinition is a subprocess scheme.processDefinitionProcessDefinitionThe current process scheme for which to resolve the invoker.
Returns
Type
Description
Task<ExpressionsInvoker>ProcessDefinition.ExpressionsInvoker from
processDefinition, or from its root process scheme when it is a subprocess scheme.public static Task<SubprocessNameGetterInvoker> GeSubprocessNameGetterInvokerAsync(WorkflowRuntime runtime, ProcessDefinition processDefinition) #Gets the SubprocessNameGetterInvoker that evaluates compiled TransitionDefinition.SubprocessName values for transitions in the specified process scheme.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime whose WorkflowRuntime.Builder loads the root process scheme when
processDefinition is a subprocess scheme.processDefinitionProcessDefinitionThe current process scheme for which to resolve the invoker.
Returns
Type
Description
Task<SubprocessNameGetterInvoker>ProcessDefinition.SubprocessNameGetterInvoker from
processDefinition, or from its root process scheme when it is a subprocess scheme.public static Task<ExpressionManager> GetExpressionManagerAsync(WorkflowRuntime runtime, ProcessDefinition processDefinition) #Gets the ExpressionManager that compiles, caches, and evaluates expressions requested while a process is running.
Parameters
Name
Type
Description
runtimeWorkflowRuntimeThe runtime whose WorkflowRuntime.Builder loads the root process scheme when
processDefinition is a subprocess scheme.processDefinitionProcessDefinitionThe current process scheme for which to resolve the manager.
Returns
Type
Description
Task<ExpressionManager>ProcessDefinition.ExpressionManager from
processDefinition, or from its root process scheme when it is a subprocess scheme.Remarks
These expression-related services are created for non-subprocess schemes. When ProcessDefinition.IsSubprocessScheme is true, these methods load the root process scheme identified by ProcessDefinition.RootSchemeId and return its services.