Backend/e-suite.Workflow.Core/Extensions/WorkflowExtensions.cs

17 lines
561 B
C#

using e_suite.Workflow.Core.Interfaces;
namespace e_suite.Workflow.Core.Extensions;
public static class WorkflowExtensions
{
/// <summary>
/// Returns true once the workflow has met any requirements that are needed to change the state to active.
/// For example, earliest start time has passed.
/// Or required starting information is now available.
/// </summary>
public static bool ReadyToActivate(this IWorkflow workflow)
{
//todo Check to see if the StartDate has passed.
return true;
}
}