parent
e43039b0c6
commit
4d7ee1769f
@ -1,29 +0,0 @@
|
|||||||
package cn.iocoder.yudao.adminserver.modules.bpm.enums;
|
|
||||||
|
|
||||||
import lombok.AllArgsConstructor;
|
|
||||||
import lombok.Getter;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 流程状态
|
|
||||||
*/
|
|
||||||
@Getter
|
|
||||||
@AllArgsConstructor
|
|
||||||
public enum FlowStatusEnum {
|
|
||||||
|
|
||||||
HANDLE(1, "处理中"),
|
|
||||||
|
|
||||||
PASS(2, "审批通过"),
|
|
||||||
|
|
||||||
REJECTED(3, "审批不通过");
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 状态
|
|
||||||
*/
|
|
||||||
private final Integer status;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 描述
|
|
||||||
*/
|
|
||||||
private final String desc;
|
|
||||||
}
|
|
||||||
@ -0,0 +1,29 @@
|
|||||||
|
package cn.iocoder.yudao.adminserver.modules.bpm.enums.task;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程实例的结果
|
||||||
|
*
|
||||||
|
* @author jason
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum ProcessInstanceResultEnum {
|
||||||
|
|
||||||
|
PROCESS(1, "处理中"),
|
||||||
|
PASS(2, "通过"),
|
||||||
|
REJECT(3, "不通过"),
|
||||||
|
CANCEL(4, "撤销");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结果
|
||||||
|
*/
|
||||||
|
private final Integer result;
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private final String desc;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
package cn.iocoder.yudao.adminserver.modules.bpm.enums.task;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 流程实例的结果
|
||||||
|
*
|
||||||
|
* @author 芋道源码
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum ProcessInstanceStatusEnum {
|
||||||
|
|
||||||
|
RUNNING(1, "进行中"),
|
||||||
|
FINISH(2, "已完成");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private final Integer result;
|
||||||
|
/**
|
||||||
|
* 描述
|
||||||
|
*/
|
||||||
|
private final String desc;
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package cn.iocoder.yudao.framework.activiti.core.util;
|
||||||
|
|
||||||
|
import org.activiti.engine.impl.identity.Authentication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Activiti 工具类
|
||||||
|
*
|
||||||
|
* @author 芋道源码
|
||||||
|
*/
|
||||||
|
public class ActivitiUtils {
|
||||||
|
|
||||||
|
public static void setAuthenticatedUserId(Long userId) {
|
||||||
|
Authentication.setAuthenticatedUserId(String.valueOf(userId));
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void clearAuthenticatedUserId() {
|
||||||
|
Authentication.setAuthenticatedUserId(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue