class ExecuteActivity implements JavaDelegate {

    protected void buildAndThrowException(DelegateExecution execution, String msg, Exception ex) {
        logger.error(LoggingAnchor.FIVE, MessageEnum.BPMN_GENERAL_EXCEPTION_ARG.toString(), msg, "BPMN",
                ErrorCode.UnknownError.getValue(), msg, ex);
        execution.setVariable(EXECUTE_ACTIVITY_ERROR_MESSAGE, msg);
        workflowActionBBFailure.updateRequestStatusToFailed(execution);
        exceptionBuilder.buildAndThrowWorkflowException(execution, 7000, msg);
    }

}