class StopAppStep extends SyncFlowableStepWithHooks implements BeforeStepHookPhaseProvider, AfterStepHookPhaseProvider {

    @Override
    public List<HookPhase> getHookPhasesBeforeStep(ProcessContext context) {
        List<HookPhase> hookPhases = getHookPhases(HookPhase.APPLICATION_BEFORE_STOP_IDLE, HookPhase.APPLICATION_BEFORE_STOP_LIVE, context);
        hookPhases.add(HookPhase.BEFORE_STOP);
        return hooksPhaseBuilder.buildHookPhases(hookPhases, context);
    }

}