agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/managers/JobRequestProcessor.java
/**
	 * Calculates the archive path of the job. If not supplied by the user, the path is generated for them using the
	 * job name and timestamp.
	 *
	 * @param archiveOutput should the job directory be archived
	 * @param jobRequestMap the job request form
	 * @param archiveSystem the system to which the job will be archived.
	 * @param job the current job object
	 * @return the remote path to which the job will be archived.
	 * @throws JobProcessingException
	 */
Calculates the archive path of the job. If not supplied by the user, the path is generated for them using the
job name and timestamp.

@param archiveOutput should the job directory be archived
@param jobRequestMap the job request form
@param archiveSystem the system to which the job will be archived.
@param job the current job object
@return the remote path to which the job will be archived.
Calculates the archive path of the job . If not supplied by the user the path is generated for them using the job name and timestamp . @param archiveOutput should the job directory be archived @param jobRequestMap the job request form @param archiveSystem the system to which the job will be archived . @param job the current job object @return the remote path to which the job will be archived .
public String processArchivePath(boolean archiveOutput, Map<String, Object> jobRequestMap, RemoteSystem archiveSystem, Job job) 
	throws JobProcessingException 
	{
		String archivePath = null;
		if (archiveOutput) {
		    if (jobRequestMap.containsKey("archivePath")) {
    		    archivePath = (String)jobRequestMap.get("archivePath");
    		    if (StringUtils.isNotEmpty(archivePath)) {
                    archivePath = JobArchivePathMacroType.resolveMacrosInPath(job, archivePath);
                    createArchivePath(archiveSystem, archivePath);
    			}
		    }
		}
		if (StringUtils.isEmpty(archivePath)) {
			archivePath = this.getUsername() + "/archive/jobs/job-" + job.getUuid();
		}
		return archivePath;
	}
public String processArchivePath ( boolean archiveOutput , Map < String , Object > jobRequestMap , RemoteSystem archiveSystem , Job job ) throws JobProcessingException { String archivePath = null ; if ( archiveOutput ) { if ( jobRequestMap . containsKey ( "archivePath" ) ) { archivePath = ( String ) jobRequestMap . get ( "archivePath" ) ; if ( StringUtils . isNotEmpty ( archivePath ) ) { archivePath = JobArchivePathMacroType . resolveMacrosInPath ( job , archivePath ) ; createArchivePath ( archiveSystem , archivePath ) ; } } } if ( StringUtils . isEmpty ( archivePath ) ) { archivePath = this . getUsername ( ) + "/archive/jobs/job-" + job . getUuid ( ) ; } return archivePath ; }
Calculates the archive path of the job.
Calculates the archive path of the job .
// resolve any macros from the user-supplied archive path into valid values based // on the job request and use those