Class WorkflowSteps
Workflow steps page.
public sealed class WorkflowSteps : Page<WorkflowStepsTemplateClientProperties>, IPage
- Inheritance
-
objectWorkflowSteps
- Implements
- Inherited Members
- Extension Methods
Constructors
WorkflowSteps(IInfoProvider<ContentWorkflowStepInfo>, IEventLogService, IUIPermissionEvaluator, IWorkflowUsageTracker, IFormDataBinder)
Creates a new instance of WorkflowSteps.
public WorkflowSteps(IInfoProvider<ContentWorkflowStepInfo> workflowStepProvider, IEventLogService eventLogService, IUIPermissionEvaluator permissionEvaluator, IWorkflowUsageTracker workflowUsageTracker, IFormDataBinder formDataBinder)
Parameters
workflowStepProvider
IInfoProvider<ContentWorkflowStepInfo>eventLogService
IEventLogServicepermissionEvaluator
IUIPermissionEvaluatorworkflowUsageTracker
IWorkflowUsageTrackerformDataBinder
IFormDataBinder
Fields
SLUG
URL slug of the page.
public const string SLUG = "steps"
Field Value
- string
Properties
WorkflowId
Identifier of the workflow the steps belong to.
[PageParameter(typeof(IntPageModelBinder))]
public int WorkflowId { get; set; }
Property Value
- int
Methods
ComponentCommand(FormComponentCommandModel, CancellationToken)
[PageCommand]
public Task<object> ComponentCommand(FormComponentCommandModel commandModel, CancellationToken cancellationToken)
Parameters
commandModel
FormComponentCommandModelcancellationToken
CancellationToken
Returns
- Task<object>
ConfigureTemplateProperties(WorkflowStepsTemplateClientProperties)
Gets the object representing client side template properties.
public override Task<WorkflowStepsTemplateClientProperties> ConfigureTemplateProperties(WorkflowStepsTemplateClientProperties properties)
Parameters
properties
WorkflowStepsTemplateClientPropertiesInitialized properties object.
Returns
CreateStep(CreateStepCommandArguments)
Creates a new workflow step.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<UpdateStepCommandResult>> CreateStep(CreateStepCommandArguments arguments)
Parameters
arguments
CreateStepCommandArgumentsCommand arguments.
Returns
CreateStepFormChange(FormChangeCommandArguments, CancellationToken)
Handles the create step form change command. The command is invoked whenever visibility conditions of the form need to be reevaluated to re-render the form.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<FormChangeResult>> CreateStepFormChange(FormChangeCommandArguments args, CancellationToken cancellationToken)
Parameters
args
FormChangeCommandArgumentsForm change arguments.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse<FormChangeResult>>
DeleteStep(DeleteStepCommandArguments)
Deletes the workflow step specified by arguments
.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse> DeleteStep(DeleteStepCommandArguments arguments)
Parameters
arguments
DeleteStepCommandArgumentsCommand arguments.
Returns
- Task<ICommandResponse>
EditStepFormChange(EditStepFormChangeCommandArguments, CancellationToken)
Handles the edit step form change command. The command is invoked whenever visibility conditions of the form need to be reevaluated to re-render the form.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<FormChangeResult>> EditStepFormChange(EditStepFormChangeCommandArguments args, CancellationToken cancellationToken)
Parameters
args
EditStepFormChangeCommandArgumentsForm change arguments.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse<FormChangeResult>>
GetEmptyForm()
Returns an empty step create form.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<WorkflowStepForm>> GetEmptyForm()
Returns
- Task<ICommandResponse<WorkflowStepForm>>
GetStepDetail(GetStepDetailArguments, CancellationToken)
Gets the properties of form components for the Form.tsx component.
[PageCommand(Permission = "View")]
public Task<ICommandResponse<WorkflowStepForm>> GetStepDetail(GetStepDetailArguments args, CancellationToken cancellationToken = default)
Parameters
args
GetStepDetailArgumentsCommand arguments.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task<ICommandResponse<WorkflowStepForm>>
GetSteps(CancellationToken)
Returns steps data for displaying collapsed bar items.
[PageCommand(Permission = "View")]
public Task<ICommandResponse<GetStepsCommandResult>> GetSteps(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenCancellation token.
Returns
MoveStep(MoveStepCommandArguments)
Moves the workflow step.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<bool>> MoveStep(MoveStepCommandArguments arguments)
Parameters
arguments
MoveStepCommandArgumentsCommand arguments.
Returns
- Task<ICommandResponse<bool>>
UpdateStep(UpdateStepCommandArguments)
Updates the workflow step specified by args
.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<UpdateStepCommandResult>> UpdateStep(UpdateStepCommandArguments args)
Parameters
args
UpdateStepCommandArgumentsUpdate step command arguments.
Returns
Exceptions
- InvalidOperationException
Throws when StepId doesn't represent any valid workflow step.