package org.hive2hive.processframework;

/**
 * Represents the internal state of a {@link ProcessComponent}.
 * 
 * @author Christian Lthold
 * 
 */
public enum ProcessState {

	/**
	 * Represents a {@link ProcessComponent} that is ready to be executed.
	 */
	READY,
	/**
	 * Represents a {@link ProcessComponent} that is currently being executed.
	 */
	EXECUTING,
	/**
	 * Represents a {@link ProcessComponent} that is currently being rolled back.
	 */
	ROLLBACKING,
	/**
	 * Represents a {@link ProcessComponent} that is currently paused, whether it is executing or rolling back.
	 */
	PAUSED,
	/**
	 * Represents a {@link ProcessComponent} that has finished successfully.
	 */
	SUCCEEDED,
	/**
	 * Represents a {@link ProcessComponent} that has finished unsuccessfully due to cancellation or fail.
	 */
	FAILED
}

@@ -433,59 +433,62 @@
 hat 
-is currently being rolled back.%0D%0A%09 */%0D%0A%09ROLLBACKING
+has executed successfully.%0D%0A%09 */%0D%0A%09EXECUTION_SUCCEEDED
 ,%0D%0A%09
@@ -543,63 +543,175 @@
 hat 
-is currently paused, whether it is execut
+has executed unsuccessfully due to cancellation or a failure.%0D%0A%09 */%0D%0A%09EXECUTION_FAILED,%0D%0A%09/**%0D%0A%09 * Represents a %7B@link ProcessComponent%7D that is currently be
 ing 
-or 
 roll
-ing
+ed
  bac
@@ -725,14 +725,19 @@
 /%0D%0A%09
-PAUSED
+ROLLBACKING
 ,%0D%0A%09
@@ -792,24 +792,27 @@
 hat has 
-finished
+rolled back
  success
@@ -826,16 +826,25 @@
 %0A%09 */%0D%0A%09
+ROLLBACK_
 SUCCEEDE
@@ -908,16 +908,19 @@
 has 
-finished
+rolled back
  uns
@@ -942,28 +942,158 @@
  to 
-cancellation or fail
+a failure.%0D%0A%09 */%0D%0A%09ROLLBACK_FAILED,%0D%0A%09/**%0D%0A%09 * Represents a %7B@link ProcessComponent%7D that is currently paused, whether it is executing or rolling back
 .%0D%0A%09
@@ -1098,19 +1098,19 @@
 %0A%09 */%0D%0A%09
-FAIL
+PAUS
 ED%0D%0A%7D%0D%0A

define new process states, documentation