wt.workflow.work
Class AssociatedProcessState

java.lang.Object
  extended bywt.workflow.work.AssociatedProcessState
All Implemented Interfaces:
TableField

public class AssociatedProcessState
extends Object
implements TableField

Class AssociatedProcessState is used to create a table entry in a table constructed by an AssociatedProcessProcessor. It can supply a column header for "State" and the localized current state of the specified workflow process.



Supported API: false

Extendable: true


Field Summary
private  Locale myLocale
           
private  WfProcess myProcess
           
private static ResourceBundle rb
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Constructor Summary
AssociatedProcessState()
           
 
Method Summary
 String getColumnName()
          Localized column header for the workflow process state
 Locale getLocale()
          Get the current locale, returns the WTContext locale by default
 WfProcess getProcess()
          Get the current process context
 String getValue()
          Returns localized state of the workflow process.
 void setContextObject(WTObject object)
          Set the current WfProcess context object
 void setLocale(Locale locale)
          Sets the current locale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

rb

private static ResourceBundle rb

myLocale

private Locale myLocale

VERBOSE

private static boolean VERBOSE

myProcess

private WfProcess myProcess
Constructor Detail

AssociatedProcessState

public AssociatedProcessState()
Method Detail

setContextObject

public void setContextObject(WTObject object)
Set the current WfProcess context object

Specified by:
setContextObject in interface TableField

getProcess

public WfProcess getProcess()
Get the current process context


getValue

public String getValue()
Returns localized state of the workflow process. If the state is null, return an html blank-space tag.

Specified by:
getValue in interface TableField
Returns:
State of the workflow process

getColumnName

public String getColumnName()
Localized column header for the workflow process state

Specified by:
getColumnName in interface TableField
Returns:
workflow process column header

setLocale

public void setLocale(Locale locale)
Sets the current locale


getLocale

public Locale getLocale()
Get the current locale, returns the WTContext locale by default