提交 e64e080e 编写于 作者: O o2sword

流程调度产生的待办为正常的待办,标志位非第一个待办

上级 7f338a37
......@@ -683,8 +683,12 @@ public class ManualProcessor extends AbstractManualProcessor {
String unit = aeiObjects.business().organization().unit().getWithIdentity(identity);
Task task = new Task(aeiObjects.getWork(), identity, person, unit, fromIdentity, new Date(), null,
aeiObjects.getRoutes(), manual.getAllowRapid());
// 是第一条待办,进行标记
task.setFirst(ListTools.isEmpty(aeiObjects.getJoinInquireTaskCompleteds()));
// 是第一条待办,进行标记,调度过的待办都标记为非第一个待办
if (BooleanUtils.isTrue(aeiObjects.getProcessingAttributes().getForceJoinAtArrive())){
task.setFirst(false);
}else{
task.setFirst(ListTools.isEmpty(aeiObjects.getJoinInquireTaskCompleteds()));
}
this.calculateExpire(aeiObjects, manual, task);
if (StringUtils.isNotEmpty(fromIdentity)) {
aeiObjects.business().organization().empowerLog()
......@@ -761,4 +765,4 @@ public class ManualProcessor extends AbstractManualProcessor {
}
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册