@Override
    protected void onError(WorkflowContext context, HyscaleException he) throws HyscaleException {
        WorkflowLogger.header(ControllerActivity.ERROR);
        WorkflowLogger.error(ControllerActivity.CAUSE, he != null ?
                he.getMessage() : DockerfileErrorCodes.FAILED_TO_GENERATE_DOCKERFILE.getMessage());
        context.setFailed(true);
        context.addAttribute(WorkflowConstants.ERROR_MESSAGE, (he != null) ? he.getMessage() : DockerfileErrorCodes.FAILED_TO_GENERATE_DOCKERFILE.getMessage());
        if (he != null) {
            throw he;
        }
    }
This class invokes the @see {@link DockerfileGenerator} to generate the Dockerfile
It acts as a bridge between workflow controller and docker file generator
provides link between {@link WorkflowContext} and {@link DockerfileGenContext}
<p>
The registered hooks are executed as a part of component invocation
workflow-controller/controller-service/src/main/java/io/hyscale/controller/invoker/DockerfileGeneratorComponentInvoker.java