提交 e19b3b0c 编写于 作者: J Joram Barrez

Removing use of DbSqlSession from ExecuteInactiveBehaviorsOperation

上级 25b8dfae
......@@ -51,7 +51,7 @@ public class ExecuteInactiveBehaviorsOperation extends AbstractOperation {
Collection<ExecutionEntity> inactiveExecutions = commandContext.getExecutionEntityManager().findInactiveExecutionsByProcessInstanceId(executionEntity.getProcessInstanceId());
for (ExecutionEntity inactiveExecution : inactiveExecutions) {
if (!inactiveExecution.isActive() && flowNodeIdsWithInactivatedBehavior.contains(inactiveExecution.getActivityId())
&& !commandContext.getDbSqlSession().isEntityToBeDeleted(inactiveExecution)) {
&& !inactiveExecution.isDeleted()) {
FlowNode flowNode = (FlowNode) process.getFlowElement(inactiveExecution.getActivityId(), true);
InactiveActivityBehavior inactiveActivityBehavior = ((InactiveActivityBehavior) flowNode.getBehavior());
......
......@@ -59,6 +59,20 @@ public class ExecutionEntityManagerImpl extends AbstractEntityManager<ExecutionE
protected DataManager<ExecutionEntity> getDataManager() {
return executionDataManager;
}
// Overriding the default delete methods to set the 'isDeleted' flag
@Override
public void delete(ExecutionEntity entity) {
super.delete(entity);
entity.setDeleted(true);
}
@Override
public void delete(ExecutionEntity entity, boolean fireDeleteEvent) {
super.delete(entity, fireDeleteEvent);
entity.setDeleted(true);
}
// FIND METHODS
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册