| | |
| | | package com.iailab.module.bpm.enums.task; |
| | | |
| | | import cn.hutool.core.util.ObjUtil; |
| | | import com.iailab.framework.common.util.object.ObjectUtils; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | |
| | | @AllArgsConstructor |
| | | public enum BpmTaskStatusEnum { |
| | | |
| | | NOT_START(-1, "未开始"), |
| | | RUNNING(1, "审批中"), |
| | | APPROVE(2, "审批通过"), |
| | | REJECT(3, "审批不通过"), |
| | | CANCEL(4, "已取消"), |
| | | |
| | | RETURN(5, "已退回"), |
| | | DELEGATE(6, "委派中"), |
| | | |
| | | /** |
| | | * 使用场景: |
| | |
| | | */ |
| | | private final String name; |
| | | |
| | | public static boolean isRejectStatus(Integer status) { |
| | | return REJECT.getStatus().equals(status); |
| | | } |
| | | |
| | | /** |
| | | * 判断该状态是否已经处于 End 最终状态 |
| | | * <p> |
| | |
| | | RETURN.getStatus(), APPROVING.getStatus()); |
| | | } |
| | | |
| | | public static boolean isCancelStatus(Integer status) { |
| | | return ObjUtil.equal(status, CANCEL.getStatus()); |
| | | } |
| | | |
| | | } |