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
workflowStepProviderIInfoProvider<ContentWorkflowStepInfo>eventLogServiceIEventLogServicepermissionEvaluatorIUIPermissionEvaluatorworkflowUsageTrackerIWorkflowUsageTrackerformDataBinderIFormDataBinder
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
commandModelFormComponentCommandModelcancellationTokenCancellationToken
Returns
- Task<object>
ConfigureTemplateProperties(WorkflowStepsTemplateClientProperties)
Gets the object representing client side template properties.
public override Task<WorkflowStepsTemplateClientProperties> ConfigureTemplateProperties(WorkflowStepsTemplateClientProperties properties)
Parameters
propertiesWorkflowStepsTemplateClientPropertiesInitialized properties object.
Returns
CreateStep(CreateStepCommandArguments)
Creates a new workflow step.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<UpdateStepCommandResult>> CreateStep(CreateStepCommandArguments arguments)
Parameters
argumentsCreateStepCommandArgumentsCommand 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
argsFormChangeCommandArgumentsForm change arguments.
cancellationTokenCancellationTokenCancellation token.
Returns
- Task<ICommandResponse<FormChangeResult>>
DeleteStep(DeleteStepCommandArguments)
Deletes the workflow step specified by arguments.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse> DeleteStep(DeleteStepCommandArguments arguments)
Parameters
argumentsDeleteStepCommandArgumentsCommand 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
argsEditStepFormChangeCommandArgumentsForm change arguments.
cancellationTokenCancellationTokenCancellation 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
argsGetStepDetailArgumentsCommand arguments.
cancellationTokenCancellationTokenCancellation 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
cancellationTokenCancellationTokenCancellation token.
Returns
MoveStep(MoveStepCommandArguments)
Moves the workflow step.
[PageCommand(Permission = "Update")]
public Task<ICommandResponse<bool>> MoveStep(MoveStepCommandArguments arguments)
Parameters
argumentsMoveStepCommandArgumentsCommand 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
argsUpdateStepCommandArgumentsUpdate step command arguments.
Returns
Exceptions
- InvalidOperationException
Throws when StepId doesn't represent any valid workflow step.