protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
protected void performSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performSuspension(execution); } }
protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
protected void performSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performSuspension(execution); } }
public void handleChildSuspension(CmmnActivityExecution execution, CmmnActivityExecution child) { // if the given execution is not suspending currently, then ignore this notification. if (execution.isSuspending() && isAbleToSuspend(execution)) { String id = execution.getId(); CaseExecutionState currentState = execution.getCurrentState(); if (SUSPENDING_ON_SUSPENSION.equals(currentState)) { execution.performSuspension(); } else if (SUSPENDING_ON_PARENT_SUSPENSION.equals(currentState)) { execution.performParentSuspension(); } else { throw LOG.suspendCaseException(id, currentState); } } }
public void handleChildSuspension(CmmnActivityExecution execution, CmmnActivityExecution child) { // if the given execution is not suspending currently, then ignore this notification. if (execution.isSuspending() && isAbleToSuspend(execution)) { String id = execution.getId(); CaseExecutionState currentState = execution.getCurrentState(); if (SUSPENDING_ON_SUSPENSION.equals(currentState)) { execution.performSuspension(); } else if (SUSPENDING_ON_PARENT_SUSPENSION.equals(currentState)) { execution.performParentSuspension(); } else { throw LOG.suspendCaseException(id, currentState); } } }
protected void performSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performSuspension(execution); } }
protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
public void handleChildSuspension(CmmnActivityExecution execution, CmmnActivityExecution child) { // if the given execution is not suspending currently, then ignore this notification. if (execution.isSuspending() && isAbleToSuspend(execution)) { String id = execution.getId(); CaseExecutionState currentState = execution.getCurrentState(); if (SUSPENDING_ON_SUSPENSION.equals(currentState)) { execution.performSuspension(); } else if (SUSPENDING_ON_PARENT_SUSPENSION.equals(currentState)) { execution.performParentSuspension(); } else { throw LOG.suspendCaseException(id, currentState); } } }