public void onStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "start"); ensureTransitionAllowed(execution, AVAILABLE, ACTIVE, "start"); }
public void onDisable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "disable"); ensureTransitionAllowed(execution, ENABLED, DISABLED, "disable"); }
public void onManualStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "manualStart"); ensureTransitionAllowed(execution, ENABLED, ACTIVE, "start"); }
public void onDisable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "disable"); ensureTransitionAllowed(execution, ENABLED, DISABLED, "disable"); }
public void onStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "start"); ensureTransitionAllowed(execution, AVAILABLE, ACTIVE, "start"); }
public void onEnable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "enable"); ensureTransitionAllowed(execution, AVAILABLE, ENABLED, "enable"); }
public void onReenable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "re-enable"); ensureTransitionAllowed(execution, DISABLED, ENABLED, "re-enable"); }
public void onManualStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "manualStart"); ensureTransitionAllowed(execution, ENABLED, ACTIVE, "start"); }
public void onEnable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "enable"); ensureTransitionAllowed(execution, AVAILABLE, ENABLED, "enable"); }
public void onReenable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "re-enable"); ensureTransitionAllowed(execution, DISABLED, ENABLED, "re-enable"); }
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 onResume(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "resume"); ensureTransitionAllowed(execution, SUSPENDED, ACTIVE, "resume"); CmmnActivityExecution parent = execution.getParent(); if (parent != null) { if (!parent.isActive()) { String id = execution.getId(); throw LOG.resumeInactiveCaseException("resume", id); } } resuming(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 onParentResume(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "parentResume"); String id = execution.getId(); if (!execution.isSuspended()) { throw LOG.wrongCaseStateException("parentResume", id, "resume", "suspended", execution.getCurrentState().toString()); } CmmnActivityExecution parent = execution.getParent(); if (parent != null) { if (!parent.isActive()) { throw LOG.resumeInactiveCaseException("parentResume", id); } } resuming(execution); }
public void onResume(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "resume"); ensureTransitionAllowed(execution, SUSPENDED, ACTIVE, "resume"); CmmnActivityExecution parent = execution.getParent(); if (parent != null) { if (!parent.isActive()) { String id = execution.getId(); throw LOG.resumeInactiveCaseException("resume", id); } } resuming(execution); }
public void onParentResume(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "parentResume"); String id = execution.getId(); if (!execution.isSuspended()) { throw LOG.wrongCaseStateException("parentResume", id, "resume", "suspended", execution.getCurrentState().toString()); } CmmnActivityExecution parent = execution.getParent(); if (parent != null) { if (!parent.isActive()) { throw LOG.resumeInactiveCaseException("parentResume", id); } } resuming(execution); }
public void onReenable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "re-enable"); ensureTransitionAllowed(execution, DISABLED, ENABLED, "re-enable"); }
public void onStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "start"); ensureTransitionAllowed(execution, AVAILABLE, ACTIVE, "start"); }
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 onResume(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "resume"); ensureTransitionAllowed(execution, SUSPENDED, ACTIVE, "resume"); CmmnActivityExecution parent = execution.getParent(); if (parent != null) { if (!parent.isActive()) { String id = execution.getId(); throw LOG.resumeInactiveCaseException("resume", id); } } resuming(execution); }