提交 | 用户 | 时间
|
bb2880
|
1 |
package com.iailab.module.bpm.framework.flowable.core.enums; |
H |
2 |
|
|
3 |
import org.flowable.engine.runtime.ProcessInstance; |
|
4 |
|
|
5 |
/** |
|
6 |
* BPM Variable 通用常量 |
|
7 |
* |
|
8 |
* @author iailab |
|
9 |
*/ |
|
10 |
public class BpmnVariableConstants { |
|
11 |
|
|
12 |
/** |
|
13 |
* 流程实例的变量 - 状态 |
|
14 |
* |
|
15 |
* @see ProcessInstance#getProcessVariables() |
|
16 |
*/ |
|
17 |
public static final String PROCESS_INSTANCE_VARIABLE_STATUS = "PROCESS_STATUS"; |
|
18 |
/** |
|
19 |
* 流程实例的变量 - 理由 |
|
20 |
* |
|
21 |
* 例如说:审批不通过的理由(目前审核通过暂时不会记录) |
|
22 |
* |
|
23 |
* @see ProcessInstance#getProcessVariables() |
|
24 |
*/ |
|
25 |
public static final String PROCESS_INSTANCE_VARIABLE_REASON = "PROCESS_REASON"; |
|
26 |
/** |
|
27 |
* 流程实例的变量 - 发起用户选择的审批人 Map |
|
28 |
* |
|
29 |
* @see ProcessInstance#getProcessVariables() |
|
30 |
*/ |
|
31 |
public static final String PROCESS_INSTANCE_VARIABLE_START_USER_SELECT_ASSIGNEES = "PROCESS_START_USER_SELECT_ASSIGNEES"; |
|
32 |
/** |
|
33 |
* 流程实例的变量 - 发起用户 ID |
|
34 |
* |
|
35 |
* @see ProcessInstance#getProcessVariables() |
|
36 |
*/ |
|
37 |
public static final String PROCESS_INSTANCE_VARIABLE_START_USER_ID = "PROCESS_START_USER_ID"; |
|
38 |
/** |
|
39 |
* 流程实例的变量 - 用于判断流程实例变量节点是否驳回. 格式 RETURN_FLAG_{节点 id} |
|
40 |
* |
|
41 |
* 目的是:驳回到发起节点时,因为审批人与发起人相同,所以被自动通过。但是,此时还是希望不要自动通过 |
|
42 |
* |
|
43 |
* @see ProcessInstance#getProcessVariables() |
|
44 |
*/ |
|
45 |
public static final String PROCESS_INSTANCE_VARIABLE_RETURN_FLAG = "RETURN_FLAG_%s"; |
|
46 |
|
|
47 |
/** |
|
48 |
* 任务的变量 - 状态 |
|
49 |
* |
|
50 |
* @see org.flowable.task.api.Task#getTaskLocalVariables() |
|
51 |
*/ |
|
52 |
public static final String TASK_VARIABLE_STATUS = "TASK_STATUS"; |
|
53 |
/** |
|
54 |
* 任务的变量 - 理由 |
|
55 |
* |
|
56 |
* 例如说:审批通过、不通过的理由 |
|
57 |
* |
|
58 |
* @see org.flowable.task.api.Task#getTaskLocalVariables() |
|
59 |
*/ |
|
60 |
public static final String TASK_VARIABLE_REASON = "TASK_REASON"; |
|
61 |
|
|
62 |
} |