class ProcessStepHelper {

    public void failStepIfProcessIsAborted(ProcessContext context) {
        String correlationId = context.getVariable(Variables.CORRELATION_ID);
        List<HistoricOperationEvent> historicOperationEvents = getProcessHelper().getHistoricOperationEventByProcessId(correlationId);
        if (isProcessAborted(historicOperationEvents)) {
            throw new SLException(Messages.PROCESS_WAS_ABORTED);
        }
    }

}