feat(REQ-4468) - 调整因为提级审批导致节点选人会异常的问题
This commit is contained in:
parent
620de09afd
commit
9ba4bbc5b9
@ -90,8 +90,7 @@ public class EngineExecutionStartListener implements ExecutionListener {
|
||||
String currentActivityId = execution.getCurrentActivityId();
|
||||
String assigneeListVariableName = INTERNAL_TASK_RELATION_ASSIGNEE_LIST_INFO + currentActivityId;
|
||||
if (execution.hasVariable(assigneeListVariableName)) {
|
||||
// 加签、转交、提级审批的动作中,会操作该变量,导致回退后,只用了当时被变更后的人,就不符合逻辑了
|
||||
execution.removeVariable(assigneeListVariableName);
|
||||
return;
|
||||
}
|
||||
Process mainProcess = ProcessDefinitionUtil.getBpmnModel(execution.getProcessDefinitionId()).getMainProcess();
|
||||
UserTask userTask = (UserTask) mainProcess.getFlowElement(currentActivityId);
|
||||
|
||||
@ -28,6 +28,7 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.Objects;
|
||||
|
||||
import static cn.axzo.workflow.common.constant.BpmnConstants.BIZ_NODE_ALTER;
|
||||
import static cn.axzo.workflow.common.constant.BpmnConstants.INTERNAL_TASK_RELATION_ASSIGNEE_LIST_INFO;
|
||||
|
||||
/**
|
||||
* Core 包内置的活动事件处理,可共用与 Jar 包集成和微服务集成
|
||||
@ -111,6 +112,7 @@ public class InternalBpmnActivityEventListener_lo_Listener extends AbstractBpmnE
|
||||
*/
|
||||
@Override
|
||||
public void onEnd(DelegateExecution execution) {
|
||||
log.warn("activity end: processInstanceId : {}, activity: {}", execution.getProcessInstanceId(), execution.getCurrentActivityId());
|
||||
// ProcessEngineConfigurationImpl processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration();
|
||||
// ManagementService managementService = processEngineConfiguration.getManagementService();
|
||||
// Job timerJob = managementService.createTimerJobQuery()
|
||||
@ -120,7 +122,8 @@ public class InternalBpmnActivityEventListener_lo_Listener extends AbstractBpmnE
|
||||
// if (Objects.nonNull(timerJob)) {
|
||||
// CommandContextUtil.getTimerJobService().deleteTimerJob((TimerJobEntity) timerJob);
|
||||
// }
|
||||
|
||||
execution.removeVariable(INTERNAL_TASK_RELATION_ASSIGNEE_LIST_INFO + execution.getCurrentActivityId());
|
||||
log.warn("delete activity list info success...");
|
||||
TermNodePausingDTO dto = new TermNodePausingDTO();
|
||||
dto.setActivityId(execution.getCurrentActivityId());
|
||||
dto.setProcessInstanceId(execution.getProcessInstanceId());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user