【功能优化】工作流:审批详情,接入 BpmnModelUtils 进行预测
This commit is contained in:
parent
3afe93a157
commit
e8c9c2eedd
|
@ -788,4 +788,14 @@ public class BpmnModelUtils {
|
||||||
return Boolean.TRUE.equals(result);
|
return Boolean.TRUE.equals(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("PatternVariableCanBeUsed")
|
||||||
|
public static boolean isSequentialUserTask(FlowElement flowElement) {
|
||||||
|
if (!(flowElement instanceof UserTask)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
UserTask userTask = (UserTask) flowElement;
|
||||||
|
MultiInstanceLoopCharacteristics loopCharacteristics = userTask.getLoopCharacteristics();
|
||||||
|
return loopCharacteristics != null && loopCharacteristics.isSequential();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue