package com.hotent.runtime.params; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.List; import com.hotent.base.model.CommonResult; import com.hotent.bpm.persistence.model.DefaultBpmProcessInstance; import com.hotent.bpm.persistence.model.DefaultBpmTask; /** * 启动流程的结果 * * @company 广州宏天软件股份有限公司 * @author zhangxianwen * @email zhangxw@jee-soft.cn * @date 2018年6月28日 */ @ApiModel(value="启动流程的结果",parent=CommonResult.class) public class StartResult extends CommonResult{ @ApiModelProperty(name="message",notes="流程实例ID",example="10000000000001",required=true) private String instId; @ApiModelProperty(name="curBoPkVal",notes="当前表单主表数据id",example="10000000000001",required=true) private String curBoPkVal; @ApiModelProperty(name="curBoPkVal",notes="执行人为空时选择 assign:由审批人指定",example="10000000000001",required=true) private String executorIsEmpty; @ApiModelProperty(name="assignTaskId",notes="执行人为空时返回的任务Id",example="10000000000001",required=true) private String assignTaskId; @ApiModelProperty(name="tasks",notes="自己可以审批的任务",required=true) private List tasks; @ApiModelProperty(name="inst",notes="实例对象",required=true) private DefaultBpmProcessInstance inst; public String getExecutorIsEmpty() { return executorIsEmpty; } public void setExecutorIsEmpty(String executorIsEmpty) { this.executorIsEmpty = executorIsEmpty; } public String getAssignTaskId() { return assignTaskId; } public void setAssignTaskId(String assignTaskId) { this.assignTaskId = assignTaskId; } public DefaultBpmProcessInstance getInst() { return inst; } public void setInst(DefaultBpmProcessInstance inst) { this.inst = inst; } public List getTasks() { return tasks; } public void setTasks(List tasks) { this.tasks = tasks; } public StartResult(String instId){ this.instId = instId; } public StartResult(String message, String instId){ super(message); this.instId = instId; } public StartResult(String message, String instId, String curBoPkVal) { super(message); this.instId = instId; this.curBoPkVal = curBoPkVal; } public StartResult(String message, String instId, String curBoPkVal,List tasks,DefaultBpmProcessInstance inst) { super(message); this.inst=inst; this.tasks=tasks; this.instId = instId; this.curBoPkVal = curBoPkVal; } public StartResult(String message, String instId, String curBoPkVal,String executorIsEmpty,String assignTaskId, List tasks,DefaultBpmProcessInstance inst) { super(message); this.inst=inst; this.tasks=tasks; this.instId = instId; this.curBoPkVal = curBoPkVal; this.executorIsEmpty = executorIsEmpty; this.assignTaskId = assignTaskId; } public String getInstId() { return instId; } public void setInstId(String instId) { this.instId = instId; } public String getCurBoPkVal() { return curBoPkVal; } public void setCurBoPkVal(String curBoPkVal) { this.curBoPkVal = curBoPkVal; } }