//private static IHostProcess[] _processes; private static void Main(string[] args) { IBuilder flow = FlowFactory.Create() .RunProcess <CreateFileProcess>(new CreateFileWorkItemArguments(DateTime.Now)) .Then().RunProcess <TokenFileProcess>() .Then().RunProcess <MaskFileProcess>() .Then().RunProcess <MapFileProcess>() .Then().RunProcess <SendFileProcess>() .Then().RunProcess <MapSendLogProcess>() .Then().RunProcess <ValidateFileProcess>() .Then().RunProcess <MoveFileProcess>(); flow.Start(1, 3, TimeSpan.FromSeconds(5), NotifyIfBrokenStep); Console.ReadKey(); }
public static IFlow <T> StartFlow <T>(this T obj) { return(FlowFactory.Create(obj)); }