protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
public void onParentSuspension(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "parentSuspension"); String id = execution.getId(); if (execution.isSuspended()) { throw LOG.alreadySuspendedException("parentSuspend", id); } if (execution.isCompleted() || execution.isTerminated()) { throw LOG.wrongCaseStateException("parentSuspend", id, "suspend", "[available|enabled|disabled|active]", execution.getCurrentState().toString()); } performParentSuspension(execution); }
public void onParentSuspension(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "parentSuspension"); String id = execution.getId(); if (execution.isSuspended()) { throw LOG.alreadySuspendedException("parentSuspend", id); } if (execution.isCompleted() || execution.isTerminated()) { throw LOG.wrongCaseStateException("parentSuspend", id, "suspend", "[available|enabled|disabled|active]", execution.getCurrentState().toString()); } performParentSuspension(execution); }
protected void performParentSuspension(CmmnActivityExecution execution) { if (!isAbleToSuspend(execution)) { suspendChildren(execution); } else { super.performParentSuspension(execution); } }
public void onParentSuspension(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "parentSuspension"); String id = execution.getId(); if (execution.isSuspended()) { throw LOG.alreadySuspendedException("parentSuspend", id); } if (execution.isCompleted() || execution.isTerminated()) { throw LOG.wrongCaseStateException("parentSuspend", id, "suspend", "[available|enabled|disabled|active]", execution.getCurrentState().toString()); } performParentSuspension(execution); }