yavsc/yavscModel/WorkFlow/IWFModule.cs

26 lines
736 B
C#

10 years ago
using System;
10 years ago
using Yavsc.Model.WorkFlow;
10 years ago
using System.Web.Mvc;
10 years ago
namespace Yavsc.Model.WorkFlow
10 years ago
{
public interface IWFModule
{
/// <summary>
/// Gets the state for an order (assuming it was passed to <c>Handle</c>).
/// </summary>
/// <returns>The state.</returns>
/// <param name="c">C.</param>
int GetState (IWFOrder c);
/// <summary>
/// Handle the specified order and form input value collection.
/// </summary>
/// <param name="order">l'ordre</param>
/// <param name="collection">La collection de valeur de champs d'entée de formulaires.</param>
/// <returns>0 when the module accepts to handle the order, non null value otherwize<returns>
int Handle (IWFOrder order,FormCollection collection);
10 years ago
}
}