agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/model/enumerations/JobStatusType.java
/**
	 * Returns the previous state in the lifecycle where 
	 * the job must be transformed. This essentially maps 
	 * the current job state to the state needed to place 
	 * it in the previous processing queue.
	 *  
	 * @return 
	 */
Returns the previous state in the lifecycle where
the job must be transformed. This essentially maps
the current job state to the state needed to place
it in the previous processing queue.

@return
Returns the previous state in the lifecycle where the job must be transformed . This essentially maps the current job state to the state needed to place it in the previous processing queue . @return
public JobStatusType rollbackState()
	{
		if (this == PENDING || this == PROCESSING_INPUTS || 
				this == STAGING_INPUTS || this == STAGED) 
		{
			return PENDING;
		} 
		else if (this == STAGING_JOB || this == SUBMITTING || 
				this == QUEUED || this == RUNNING || 
				this == CLEANING_UP)
		{
			return STAGED;
		} 
		else if (this == ARCHIVING || this == ARCHIVING_FAILED || 
				this == ARCHIVING_FINISHED) 
		{
			return CLEANING_UP;
		} 
		else { 
			return PENDING;
		}
	}
public JobStatusType rollbackState ( ) { if ( this == PENDING || this == PROCESSING_INPUTS || this == STAGING_INPUTS || this == STAGED ) { return PENDING ; } else if ( this == STAGING_JOB || this == SUBMITTING || this == QUEUED || this == RUNNING || this == CLEANING_UP ) { return STAGED ; } else if ( this == ARCHIVING || this == ARCHIVING_FAILED || this == ARCHIVING_FINISHED ) { return CLEANING_UP ; } else { return PENDING ; } }
Returns the previous state in the lifecycle where
 the job must be transformed.
Returns the previous state in the lifecycle where the job must be transformed .
// Begin again with staging inputs // Resubmit from current state // Rerun archiving tasks // Just rerun from the beginning // PAUSED, KILLED, STOPPED, FINISHED, FAILED