Spring Workflow

spring 工作流实现

爷,独闯天下 提交于 2020-03-05 11:50:06
主要讲解一下通过执行器、配置文件实现工作流。 1、执行器: bean定义: public class ProcessContext implements Serializable { private String code;//工作组模版编码 private long beginTime = 0L;//开始时间 private long endTime = 0L;//结束时间 private long timeout = 0L;//超时时间 private Boolean needBreak = false;//是否中断 private boolean isSuccess = true;//执行是否成功 private int errorCode = 0;//错误编码 private String errorMsg = "";//错误信息 public Boolean getNeedBreak() { return this.needBreak; } public ProcessContext setNeedBreak(Boolean needBreak) { this.needBreak = needBreak; return this; } public boolean isSuccess() { return this.isSuccess; } public