Class FormsRuntimeApi
OptimaJet.Workflow.Plugins.FormsPlugin.FormsRuntimeApi
Contains a set of methods that can be used to manipulate forms bound to processes.
Namespace: OptimaJet.Workflow.Plugins.FormsPlugin
public sealed class FormsRuntimeApiInheritance
- System.Object
Methods
public Task<GetFormResult> GetFormAsync(GetFormParameters parameters) #Returns the form as a standalone form, not bound to any process. When GetFormParameters.TenantId is set, the lookup prefers tenant-scoped forms and falls back to shared forms according to the persistence provider rules.
Parameters
Name
Type
Description
parametersGetFormParametersThe get form parameters.
Returns
Type
Description
Task<GetFormResult>The result of the get form operation.
public Task<GetProcessFormResult> GetProcessFormAsync(GetProcessFormParameters parameters) #Returns the form bound to a process.
Parameters
Name
Type
Description
parametersGetProcessFormParametersThe get form parameters.
Returns
Type
Description
Task<GetProcessFormResult>The result of the get form operation.
public Task<GetExecutableFormsResult> GetExecutableFormsAsync(GetExecutableFormsParameters parameters, CancellationToken token = default) #Returns the form bound to a process and the process commands that the user has access to.
Parameters
Name
Type
Description
parametersGetExecutableFormsParametersThe get form parameters.
tokenCancellationTokenThe cancellation token.
Returns
Type
Description
Task<GetExecutableFormsResult>The result of the get form operation.
public Task<SaveFormResult> SaveFormAsync(SaveFormParameters parameters, CancellationToken token = default) #Saves form data to process parameters.
Parameters
Name
Type
Description
parametersSaveFormParametersThe form save parameters.
tokenCancellationTokenThe cancellation token.
Returns
Type
Description
Task<SaveFormResult>The result of the form save operation.
public Task<ExecuteFormResult> ExecuteFormAsync(ExecuteFormParameters parameters, CancellationToken token = default) #Executes a form. Form execution means saving the form and executing a command bound to the form.
Parameters
Name
Type
Description
parametersExecuteFormParametersThe form execution parameters.
tokenCancellationTokenThe cancellation token.
Returns
Type
Description
Task<ExecuteFormResult>The result of the form execution.