net.kwfgrid.gwes
Class WorkflowStatus

java.lang.Object
  extended by net.kwfgrid.gwes.WorkflowStatus

public class WorkflowStatus
extends Object

Status of Workflow

Version:
$Id: WorkflowStatus.java 1484 2011-02-14 17:02:26Z hoheisel $
Author:
Andreas Hoheisel (www.andreas-hoheisel.de)

Field Summary
static int STATUS_ACTIVE
          Status ACTIVE = 4.
static String STATUS_ACTIVE_STR
           
static int STATUS_COMPLETED
          Status COMPLETED = 6.
static String STATUS_COMPLETED_STR
           
static int STATUS_FAILED
          Status FAILED = 7.
static String STATUS_FAILED_STR
           
static int STATUS_INITIATED
          Status INITIATED = 1.
static String STATUS_INITIATED_STR
           
static int STATUS_RUNNING
          Status RUNNING = 2.
static String STATUS_RUNNING_STR
           
static int STATUS_SUSPENDED
          Status SUSPENDED = 3.
static String STATUS_SUSPENDED_STR
           
static int STATUS_TERMINATED
          Status TERMINATED = 5.
static String STATUS_TERMINATED_STR
           
static int STATUS_UNDEFINED
          Status UNDEFINED = 0.
static String STATUS_UNDEFINED_STR
           
 
Constructor Summary
WorkflowStatus()
           
 
Method Summary
static int getStatusAsInt(String statusStr)
          Convert the status of a workflow from an string to int.
static String getStatusAsString(int status)
          Convert the status of a workflow from an integer to a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_UNDEFINED

public static final int STATUS_UNDEFINED
Status UNDEFINED = 0. The status remains UNDEFINED from the construction of the workflow until the method initiateWorkflow() has been called.

See Also:
STATUS_INITIATED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_UNDEFINED_STR

public static final String STATUS_UNDEFINED_STR
See Also:
Constant Field Values

STATUS_INITIATED

public static final int STATUS_INITIATED
Status INITIATED = 1. The workflow has been created and initialized but not yet been started or aborted.

See Also:
STATUS_UNDEFINED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_INITIATED_STR

public static final String STATUS_INITIATED_STR
See Also:
Constant Field Values

STATUS_RUNNING

public static final int STATUS_RUNNING
Status RUNNING = 2. The workflow has been started but it is not yet active or complete and it has not been suspended or aborted.

See Also:
STATUS_UNDEFINED, STATUS_INITIATED, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_RUNNING_STR

public static final String STATUS_RUNNING_STR
See Also:
Constant Field Values

STATUS_SUSPENDED

public static final int STATUS_SUSPENDED
Status SUSPENDED = 3. The workflow is quiescent and can be returned to the running state via resumeWorkflow().

See Also:
STATUS_UNDEFINED, STATUS_INITIATED, STATUS_RUNNING, STATUS_ACTIVE, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_SUSPENDED_STR

public static final String STATUS_SUSPENDED_STR
See Also:
Constant Field Values

STATUS_ACTIVE

public static final int STATUS_ACTIVE
Status ACTIVE = 4. One ore more activity instances of this workflow are allocated.

See Also:
Activity, STATUS_UNDEFINED, STATUS_INITIATED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_ACTIVE_STR

public static final String STATUS_ACTIVE_STR
See Also:
Constant Field Values

STATUS_TERMINATED

public static final int STATUS_TERMINATED
Status TERMINATED = 5. The execution of this workflow instance has aborted before its normal completion. This can be due to an workflow exception (workflow failed) or via the method abortWorkflow().

See Also:
STATUS_UNDEFINED, STATUS_INITIATED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_COMPLETED, Constant Field Values

STATUS_TERMINATED_STR

public static final String STATUS_TERMINATED_STR
See Also:
Constant Field Values

STATUS_COMPLETED

public static final int STATUS_COMPLETED
Status COMPLETED = 6. The workflow instance has fulfilled the conditions for completion. The workflow instance will be destroyed.

See Also:
STATUS_UNDEFINED, STATUS_INITIATED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_TERMINATED, Constant Field Values

STATUS_COMPLETED_STR

public static final String STATUS_COMPLETED_STR
See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
Status FAILED = 7. One or more activities have failed. They will be retried.

See Also:
STATUS_UNDEFINED, STATUS_INITIATED, STATUS_RUNNING, STATUS_SUSPENDED, STATUS_ACTIVE, STATUS_TERMINATED, STATUS_COMPLETED, Constant Field Values

STATUS_FAILED_STR

public static final String STATUS_FAILED_STR
See Also:
Constant Field Values
Constructor Detail

WorkflowStatus

public WorkflowStatus()
Method Detail

getStatusAsString

public static String getStatusAsString(int status)
Convert the status of a workflow from an integer to a string.

Parameters:
status - The status code with should be converted into a string.
Returns:
string representing the status that corresponds to the status code.

getStatusAsInt

public static int getStatusAsInt(String statusStr)
Convert the status of a workflow from an string to int.

Parameters:
statusStr - The status string with should be converted into int.
Returns:
status code.


Copyright © 2005-2011 Fraunhofer FIRST. All Rights Reserved.