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; } } }
public WorkflowActor(IWfwStatus <T> startWith) : base() { _current = startWith; Become(new Behavior <IWfwStatus <T> >(DoProcess)); }