| | |
| | | package com.iailab.module.bpm.enums.task; |
| | | |
| | | import com.iailab.framework.common.core.IntArrayValuable; |
| | | import com.iailab.framework.common.util.object.ObjectUtils; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | |
| | | @AllArgsConstructor |
| | | public enum BpmProcessInstanceStatusEnum implements IntArrayValuable { |
| | | |
| | | NOT_START(-1, "未开始"), |
| | | RUNNING(1, "审批中"), |
| | | APPROVE(2, "审批通过"), |
| | | REJECT(3, "审批不通过"), |
| | |
| | | return ARRAYS; |
| | | } |
| | | |
| | | public static boolean isRejectStatus(Integer status) { |
| | | return REJECT.getStatus().equals(status); |
| | | } |
| | | |
| | | public static boolean isProcessEndStatus(Integer status) { |
| | | return ObjectUtils.equalsAny(status, |
| | | APPROVE.getStatus(), REJECT.getStatus(), CANCEL.getStatus()); |
| | | } |
| | | |
| | | |
| | | } |