Class ModuleAutomationTaskForm
Module that handles form editing for automation tasks, automatically setting the initial status on creation.
Inherited Members
Namespace: DataWeb.Structure.Modules
Assembly: DataWeb.Core.dll
Syntax
public class ModuleAutomationTaskForm : ModuleForm
Constructors
ModuleAutomationTaskForm(Section, NavigationContext, IServiceProvider)
Module that handles form editing for automation tasks, automatically setting the initial status on creation.
Declaration
public ModuleAutomationTaskForm(Section section, NavigationContext navigationContext, IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| Section | section | |
| NavigationContext | navigationContext | |
| IServiceProvider | serviceProvider |
Methods
ProcessOnSaveDataAsync(Item, SectionPart, List<ProvidedValue>, Dictionary<string, object>, CancellationToken)
Sets the Status field to "Idle" when a new automation task section part is created.
Declaration
public override Task ProcessOnSaveDataAsync(Item item, Item.SectionPart sectionPart, List<Form.ProvidedValue> providedValues, Dictionary<string, object> historySectionData, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The parent item being saved. |
| Item.SectionPart | sectionPart | The section part being saved. |
| List<Form.ProvidedValue> | providedValues | Form values provided by the user. |
| Dictionary<string, object> | historySectionData | Data used for audit history tracking. |
| CancellationToken | cancellationToken | Token to cancel the asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task | A completed task. |