using e_suite.Workflow.Core.Attributes;
using e_suite.Workflow.Core.Enums;

namespace e_suite.Workflow.Core.Tasks;

/// <summary>
/// A Milestone task does not have any specific processing, so is ready to complete as soon at it starts.
/// </summary>
[GeneralTask]
public class MilestoneTask : TaskBase
{
    public override async Task OnActivateAsync()
    {
        await base.OnActivateAsync();
        TaskState = TaskState.ReadyToComplete;
    }
}