agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/launchers/HPCLauncher.java
/**
	 * Filters the app template with the input values from the job request
	 *
	 * @param appTemplate the app wrapper template content
	 * @return the filtered content
	 * @throws JobException if the parameters cannot be fetched as a JsonObject
	 */
Filters the app template with the input values from the job request
@param appTemplate the app wrapper template content
@return the filtered content
@throws JobException if the parameters cannot be fetched as a JsonObject
Filters the app template with the input values from the job request @param appTemplate the app wrapper template content @return the filtered content @throws JobException if the parameters cannot be fetched as a JsonObject
protected String resolveJobRequestInputs(String appTemplate) throws JobException, URISyntaxException {
		JsonNode jobInputs = getJob().getInputsAsJsonObject();
		for (SoftwareInput input: getSoftware().getInputs())
		{
			if (jobInputs.has(input.getKey()))
			{
				JsonNode jobJsonInput = jobInputs.get(input.getKey());
				String templateVariableValue = parseSoftwareInputValueIntoTemplateVariableValue(input, jobJsonInput);
				appTemplate = appTemplate.replaceAll("(?i)\\$\\{" + input.getKey() + "\\}", templateVariableValue);
			}
			else if (!input.isVisible())
			{
				String templateVariableValue = parseSoftwareInputValueIntoTemplateVariableValue(input, input.getDefaultValueAsJsonArray());
				appTemplate = appTemplate.replaceAll("(?i)\\$\\{" + input.getKey() + "\\}", templateVariableValue);
			}
			else
			{
				appTemplate = appTemplate.replaceAll("(?i)\\$\\{" + input.getKey() + "\\}", "");
			}
		}
		return appTemplate;
	}
protected String resolveJobRequestInputs ( String appTemplate ) throws JobException , URISyntaxException { JsonNode jobInputs = getJob ( ) . getInputsAsJsonObject ( ) ; for ( SoftwareInput input : getSoftware ( ) . getInputs ( ) ) { if ( jobInputs . has ( input . getKey ( ) ) ) { JsonNode jobJsonInput = jobInputs . get ( input . getKey ( ) ) ; String templateVariableValue = parseSoftwareInputValueIntoTemplateVariableValue ( input , jobJsonInput ) ; appTemplate = appTemplate . replaceAll ( "(?i)\\$\\{" + input . getKey ( ) + "\\}" , templateVariableValue ) ; } else if ( ! input . isVisible ( ) ) { String templateVariableValue = parseSoftwareInputValueIntoTemplateVariableValue ( input , input . getDefaultValueAsJsonArray ( ) ) ; appTemplate = appTemplate . replaceAll ( "(?i)\\$\\{" + input . getKey ( ) + "\\}" , templateVariableValue ) ; } else { appTemplate = appTemplate . replaceAll ( "(?i)\\$\\{" + input . getKey ( ) + "\\}" , "" ) ; } } return appTemplate ; }
Filters the app template with the input values from the job request
 @param appTemplate the app wrapper template content
 @return the filtered content
 @throws JobException if the parameters cannot be fetched as a JsonObject
Filters the app template with the input values from the job request @param appTemplate the app wrapper template content @return the filtered content @throws JobException if the parameters cannot be fetched as a JsonObject
// replace the parameters with their passed in values // serialized the runtime parameters into a string of space-delimited // values after enquoting and adding relevant argument(s) // now actually filter the template for this parameter // serialized the runtime parameters into a string of space-delimited // values after enquoting and adding relevant argument(s) // now actually filter the template for this parameter