yavsc/yavscModel/WorkFlow/IWFModule.cs

25 lines
736 B
C#
Raw Normal View History

2014-07-16 20:35:03 +02:00
using System;
2014-10-06 04:58:47 +02:00
using Yavsc.Model.WorkFlow;
2014-07-16 20:35:03 +02:00
using System.Web.Mvc;
2014-10-06 04:58:47 +02:00
namespace Yavsc.Model.WorkFlow
2014-07-16 20:35:03 +02:00
{
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);
2014-07-16 20:35:03 +02:00
}
}