agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/WrapperTemplateMacroResolver.java
/**
     * Resolves the {@link WrapperTemplateStatusVariableType} for the given job into bash commands that will be run on
     * the remote host within the wrapper script during the life of the job. These represent
     * {@code AGAVE_JOB_CALLBACK_<JOB STATUS>} macros in the wrapper template. Tenancy is honored with respect to the
     * system and job.
     *
     * @param executionSystem the job execution.
     * @param jobStatusMacro the job attribute macro to resolve
     * @return resolved value of the variable.
     * @throws JobMacroResolutionException when the macro cannot be resolved. Generally this is due to an unavailable execution system
     */
Resolves the  WrapperTemplateStatusVariableType for the given job into bash commands that will be run on
the remote host within the wrapper script during the life of the job. These represent
AGAVE_JOB_CALLBACK_ macros in the wrapper template. Tenancy is honored with respect to the
system and job.

@param executionSystem the job execution.
@param jobStatusMacro the job attribute macro to resolve
@return resolved value of the variable.
@throws JobMacroResolutionException when the macro cannot be resolved. Generally this is due to an unavailable execution system
Resolves the WrapperTemplateStatusVariableType for the given job into bash commands that will be run on the remote host within the wrapper script during the life of the job . These represent AGAVE_JOB_CALLBACK_ macros in the wrapper template . Tenancy is honored with respect to the system and job . @param executionSystem the job execution . @param jobStatusMacro the job attribute macro to resolve @return resolved value of the variable . @throws JobMacroResolutionException when the macro cannot be resolved . Generally this is due to an unavailable execution system
protected String resolveJobCallbackMacro(ExecutionSystem executionSystem, WrapperTemplateStatusVariableType jobStatusMacro) throws JobMacroResolutionException {
        if (jobStatusMacro == WrapperTemplateStatusVariableType.AGAVE_JOB_CALLBACK_NOTIFICATION) {
            return resolveNotificationEventMacro(null, null);
        } else {
            return String.format("agave_log_response $(curl --connect-timeout 10 -sSk \"%strigger/job/%s/token/%s/status/%s?filter=id,status\" 2>&1) \n\n\n",
                    resolveTenantJobUrl(getJob().getTenantId()),
                    getJob().getUuid(),
                    getJob().getUpdateToken(),
                    jobStatusMacro.getStatus().name());
        }
    }
protected String resolveJobCallbackMacro ( ExecutionSystem executionSystem , WrapperTemplateStatusVariableType jobStatusMacro ) throws JobMacroResolutionException { if ( jobStatusMacro == WrapperTemplateStatusVariableType . AGAVE_JOB_CALLBACK_NOTIFICATION ) { return resolveNotificationEventMacro ( null , null ) ; } else { return String . format ( "agave_log_response $(curl --connect-timeout 10 -sSk \"%strigger/job/%s/token/%s/status/%s?filter=id,status\" 2>&1) \n\n\n" , resolveTenantJobUrl ( getJob ( ) . getTenantId ( ) ) , getJob ( ) . getUuid ( ) , getJob ( ) . getUpdateToken ( ) , jobStatusMacro . getStatus ( ) . name ( ) ) ; } }
Resolves the {@link WrapperTemplateStatusVariableType} for the given job into bash commands that will be run on
 the remote host within the wrapper script during the life of the job.
Resolves the { @link WrapperTemplateStatusVariableType } for the given job into bash commands that will be run on the remote host within the wrapper script during the life of the job .