Esempio n. 1
0
 private void DoProcess(IWfwStatus <T> aStatus)
 {
     // find transition
     foreach (var tr in aStatus.TransitionList)
     {
         if (tr.Action.Pattern(aStatus))
         {
             tr.Action.Apply(aStatus);
             // change status
             _current = tr.Destination;
             break;
         }
     }
 }
Esempio n. 2
0
 public WorkflowActor(IWfwStatus <T> startWith)
     : base()
 {
     _current = startWith;
     Become(new Behavior <IWfwStatus <T> >(DoProcess));
 }