com.ibm.itim.workflow.model.type
Class WorkflowState

java.lang.Object
  extended by com.ibm.itim.workflow.model.type.WorkflowState

public class WorkflowState
extends java.lang.Object


Field Summary
static java.lang.String ABORTED
          Field ABORTED
static java.lang.String BYPASSED
          Field BYPASSED
static java.lang.String COMPLETED
          Field COMPLETED
static java.lang.String NOTSTARTED
          Field NOTSTARTED
static java.lang.String RUNNING
          Field RUNNING
static java.lang.String SUSPENDED
          Field SUSPENDED
static java.lang.String TERMINATED
          Field TERMINATED
 
Constructor Summary
WorkflowState()
           
 
Method Summary
static java.util.Collection getClosedStates()
           
static java.lang.String getFormattedName(java.lang.String s, java.util.Locale l)
           
static java.util.Collection getNotRunningStates()
           
static java.util.Collection getOpenStates()
           
static boolean isAborted(java.lang.String state)
          Method which determines if the state is aborted or terminated.
static boolean isClosedState(java.lang.String state)
          Identifies whether the specified state is a closed state.
static boolean isOpenState(java.lang.String state)
          Identifies whether the specified state is an open state.
static boolean isRunnableState(java.lang.String state)
          Identifies whether the specified state is a runnable state.
static boolean isRunningState(java.lang.String state)
          Identifies whether the specified state is a running state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RUNNING

public static final java.lang.String RUNNING
Field RUNNING

See Also:
Constant Field Values

NOTSTARTED

public static final java.lang.String NOTSTARTED
Field NOTSTARTED

See Also:
Constant Field Values

TERMINATED

public static final java.lang.String TERMINATED
Field TERMINATED

See Also:
Constant Field Values

ABORTED

public static final java.lang.String ABORTED
Field ABORTED

See Also:
Constant Field Values

SUSPENDED

public static final java.lang.String SUSPENDED
Field SUSPENDED

See Also:
Constant Field Values

COMPLETED

public static final java.lang.String COMPLETED
Field COMPLETED

See Also:
Constant Field Values

BYPASSED

public static final java.lang.String BYPASSED
Field BYPASSED

See Also:
Constant Field Values
Constructor Detail

WorkflowState

public WorkflowState()
Method Detail

isClosedState

public static boolean isClosedState(java.lang.String state)
Identifies whether the specified state is a closed state.

Parameters:
state - the state used for the comparison.
Returns:
state.equals(TERMINATED) ||
state.equals(ABORTED) ||
state.equals(COMPLETED) ||
state.equals(BYPASSED)

isOpenState

public static boolean isOpenState(java.lang.String state)
Identifies whether the specified state is an open state.

Parameters:
state - the state used for the comparison.
Returns:
(state.equals(RUNNING) || state.equals(SUSPENDED))

isRunnableState

public static boolean isRunnableState(java.lang.String state)
Identifies whether the specified state is a runnable state.

Parameters:
state - the state used for the comparison.
Returns:
(isOpenState(state) || state.equals(NOTSTARTED))

isRunningState

public static boolean isRunningState(java.lang.String state)
Identifies whether the specified state is a running state.

Parameters:
state - the state used for the comparison.
Returns:
state.equals(RUNNING)

getOpenStates

public static java.util.Collection getOpenStates()

getClosedStates

public static java.util.Collection getClosedStates()

getNotRunningStates

public static java.util.Collection getNotRunningStates()

getFormattedName

public static java.lang.String getFormattedName(java.lang.String s,
                                                java.util.Locale l)

isAborted

public static boolean isAborted(java.lang.String state)
Method which determines if the state is aborted or terminated.

Parameters:
state - String value of the state to compare.
Returns:
true if the state is aborted or terminated false otherwise


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.