commit
This commit is contained in:
@@ -109,6 +109,8 @@ public interface FlowConst {
|
||||
// 流程实例名称
|
||||
String PROCESS_INSTANCE_NAME = "instanceName";
|
||||
|
||||
|
||||
//============================================扩展==================================================
|
||||
// 开启之后不会校验任务执行所属权
|
||||
String EXT_ENABLE_OPERATOR = "";
|
||||
|
||||
}
|
||||
|
||||
@@ -22,6 +22,9 @@ public class FlowCommonService {
|
||||
public void executeTask(Dict args){
|
||||
Long processTaskId = args.getLong(FlowConst.PROCESS_TASK_ID_KEY);
|
||||
String operator = SecurityUtil.getUserId();
|
||||
if (args.containsKey(FlowConst.EXT_ENABLE_OPERATOR)&&args.getBool(FlowConst.EXT_ENABLE_OPERATOR)){
|
||||
operator = FlowConst.ADMIN_ID;
|
||||
}
|
||||
args.remove(FlowConst.PROCESS_TASK_ID_KEY);
|
||||
Integer submitType = args.getInt(FlowConst.SUBMIT_TYPE);
|
||||
if (submitType == null) {
|
||||
|
||||
Reference in New Issue
Block a user