WorkflowDto.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using Abp.Application.Services.Dto;
  2. using VberZero.Workflow.DesignInfo;
  3. using WorkflowCore.Models;
  4. namespace VberZero.AppService.Workflows.Dto;
  5. public class WorkflowDto : EntityDto<string>
  6. {
  7. public string WorkflowDefinitionId { get; set; }
  8. public int Version { get; set; }
  9. /// <summary>
  10. /// 流程定义输入的数据
  11. /// </summary>
  12. public IEnumerable<IEnumerable<WorkflowFormData>> Inputs { get; set; }
  13. /// <summary>
  14. /// 流程输入数据
  15. /// </summary>
  16. public Dictionary<string, object> Data { get; set; }
  17. /// <summary>
  18. /// 用户名
  19. /// </summary>
  20. public string UserName { get; set; }
  21. /// <summary>
  22. /// 流程名
  23. /// </summary>
  24. public string Title { get; set; }
  25. /// <summary>
  26. /// 提交时间
  27. /// </summary>
  28. public DateTime CreationTime { get; set; }
  29. public DateTime? CompleteTime { get; set; }
  30. public WorkflowStatus Status { get; set; }
  31. public IEnumerable<WorkflowExecutionRecord> ExecutionRecords { get; set; }
  32. }
  33. public class WorkflowExecutionRecord
  34. {
  35. public string ExecutionPointerId { get; set; }
  36. public string StepName { get; set; }
  37. public int StepId { get; set; }
  38. public string StepTitle { get; set; }
  39. public DateTime? StartTime { get; set; }
  40. public DateTime? EndTime { get; set; }
  41. }