com.silverpeas.workflow.engine.event
Class TimeoutEventImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.event.TimeoutEventImpl
All Implemented Interfaces:
GenericEvent, TimeoutEvent

public class TimeoutEventImpl
extends Object
implements TimeoutEvent

A TimeoutEvent object is the description of an instance, that is in the same active state since too long Those descriptions are sent to the timeout manager


Constructor Summary
TimeoutEventImpl(ProcessInstance processInstance, State resolvedState, Action action)
          A TimeoutEventImpl object is built from a processInstance, a state and an action
 
Method Summary
 Date getActionDate()
          Returns the action date.
 String getActionName()
          Returns the name of the action chosen to resolve the activity.
 DataRecord getDataRecord()
          Returns the data filled when the action was processed.
 ProcessInstance getProcessInstance()
          Returns the process instance.
 State getResolvedState()
          Returns the state/activity resolved by the user.
 User getUser()
          Returns the actor.
 String getUserRoleName()
          Returns the role name of the actor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeoutEventImpl

public TimeoutEventImpl(ProcessInstance processInstance,
                        State resolvedState,
                        Action action)
A TimeoutEventImpl object is built from a processInstance, a state and an action

Method Detail

getUser

public User getUser()
Returns the actor.

Specified by:
getUser in interface GenericEvent

getProcessInstance

public ProcessInstance getProcessInstance()
Returns the process instance. Returns null when the task is an instance creation.

Specified by:
getProcessInstance in interface GenericEvent

getResolvedState

public State getResolvedState()
Returns the state/activity resolved by the user.

Specified by:
getResolvedState in interface GenericEvent

getActionName

public String getActionName()
Returns the name of the action chosen to resolve the activity.

Specified by:
getActionName in interface GenericEvent

getActionDate

public Date getActionDate()
Returns the action date.

Specified by:
getActionDate in interface GenericEvent

getDataRecord

public DataRecord getDataRecord()
Returns the data filled when the action was processed.

Specified by:
getDataRecord in interface GenericEvent

getUserRoleName

public String getUserRoleName()
Returns the role name of the actor

Specified by:
getUserRoleName in interface GenericEvent


Copyright © 2016 Silverpeas. All Rights Reserved.