Workflow.cs 595 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading;
  6. using System.Threading.Tasks;
  7. namespace StageController
  8. {
  9. public class Workflow
  10. {
  11. public bool Done { get; set; }
  12. public List<Workflow> Worklist { get; private set; }
  13. public Workflow(List<Workflow> workflows)
  14. {
  15. Worklist = workflows;
  16. _index = workflows.Count;
  17. }
  18. public Action Process = () => { };
  19. public Func<bool> Judgement = () => { return true; };
  20. readonly int _index;
  21. }
  22. }