com.silverpeas.workflow.engine.instance
Class ActiveState

java.lang.Object
  extended by com.silverpeas.workflow.engine.AbstractReferrableObject
      extended by com.silverpeas.workflow.engine.instance.ActiveState
All Implemented Interfaces:
ReferrableObjectIntf

public class ActiveState
extends AbstractReferrableObject


Constructor Summary
ActiveState()
          Default Constructor
ActiveState(String state)
          Constructor
 
Method Summary
 boolean getBackStatus()
          Get the status regarding a possible undo process
 int getBackStatusCastor()
           
 String getId()
          For persistence in database Get this object id
 String getKey()
          This method has to be implemented by the referrable object it has to compute the unique key
 ProcessInstanceImpl getProcessInstance()
          Get the instance for which user is affected
 String getState()
          Get state name
 Date getTimeoutDate()
          Get the date at which current state will be in timeout
 int getTimeoutStatus()
          Get the timeout status of this active state
 void setBackStatus(boolean backStatus)
          Set the status regarding a possible undo process
 void setBackStatusCastor(int backStatus)
           
 void setId(String id)
          For persistence in database Set this object id
 void setProcessInstance(ProcessInstanceImpl processInstance)
          Set the instance for which user is affected
 void setState(String state)
          Set state name
 void setTimeoutDate(Date timeoutDate)
          Set the date at which current state will be in timeout
 void setTimeoutStatus(int timeoutStatus)
          Set the timeout status of this active state
 
Methods inherited from class com.silverpeas.workflow.engine.AbstractReferrableObject
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveState

public ActiveState()
Default Constructor


ActiveState

public ActiveState(String state)
Constructor

Parameters:
state - state name
Method Detail

getId

public String getId()
For persistence in database Get this object id

Returns:
this object id

setId

public void setId(String id)
For persistence in database Set this object id

Parameters:
this - object id

getState

public String getState()
Get state name

Returns:
state name

setState

public void setState(String state)
Set state name

Parameters:
state - state name

getBackStatus

public boolean getBackStatus()
Get the status regarding a possible undo process

Returns:
true if state is active to be discussed

getBackStatusCastor

public int getBackStatusCastor()

setBackStatus

public void setBackStatus(boolean backStatus)
Set the status regarding a possible undo process

Parameters:
backStatus - true if state is active to be discussed

setBackStatusCastor

public void setBackStatusCastor(int backStatus)

getProcessInstance

public ProcessInstanceImpl getProcessInstance()
Get the instance for which user is affected

Returns:
instance

setProcessInstance

public void setProcessInstance(ProcessInstanceImpl processInstance)
Set the instance for which user is affected

Parameters:
processInstance - instance

getTimeoutStatus

public int getTimeoutStatus()
Get the timeout status of this active state

Returns:
true if this an active state is there for a long long time

setTimeoutDate

public void setTimeoutDate(Date timeoutDate)
Set the date at which current state will be in timeout

Parameters:
timeoutDate - the timeout Date to set

getTimeoutDate

public Date getTimeoutDate()
Get the date at which current state will be in timeout

Returns:
the timeout Date

setTimeoutStatus

public void setTimeoutStatus(int timeoutStatus)
Set the timeout status of this active state

Parameters:
timeoutStatus - true if this active state is there for a long long time

getKey

public String getKey()
This method has to be implemented by the referrable object it has to compute the unique key

Specified by:
getKey in interface ReferrableObjectIntf
Specified by:
getKey in class AbstractReferrableObject
Returns:
The unique key.
See Also:
equals, hashCode


Copyright © 2016 Silverpeas. All Rights Reserved.