public void onStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "start"); ensureTransitionAllowed(execution, AVAILABLE, ACTIVE, "start"); }
public void onManualCompletion(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, COMPLETED, "complete"); manualCompleting(execution); }
public void onTermination(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, TERMINATED, "terminate"); performTerminate(execution); }
public void onCompletion(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, COMPLETED, "complete"); completing(execution); }
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 onTermination(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, TERMINATED, "terminate"); performTerminate(execution); }
public void onSuspension(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, SUSPENDED, "suspend"); performSuspension(execution); }
public void onDisable(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "disable"); ensureTransitionAllowed(execution, ENABLED, DISABLED, "disable"); }
public void onCompletion(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, COMPLETED, "complete"); completing(execution); }
public void onSuspension(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, SUSPENDED, "suspend"); performSuspension(execution); }
public void onManualStart(CmmnActivityExecution execution) { ensureNotCaseInstance(execution, "manualStart"); ensureTransitionAllowed(execution, ENABLED, ACTIVE, "start"); }
public void onManualCompletion(CmmnActivityExecution execution) { ensureTransitionAllowed(execution, ACTIVE, COMPLETED, "complete"); manualCompleting(execution); }
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 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 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); }