com.silverpeas.workflow.engine.event
Class QuestionEventImpl

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

public class QuestionEventImpl
extends Object
implements QuestionEvent

A QuestionEvent object is the description of a question to a precedent actor. Those descriptions are sent to the workflow engine by the workflow tools when the user asked a question in process instance


Constructor Summary
QuestionEventImpl(Task resolvedTask, String stepId, DataRecord data)
          A QuestionEventImpl is built from a resolved task, a choosen target state and a filled form.
 
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.
 ProcessModel getProcessModel()
          Returns the process model (peas).
 State getResolvedState()
          Returns the state/activity resolved by the user.
 String getStepId()
          Returns the discussed step id
 User getUser()
          Returns the actor.
 String getUserRoleName()
          Returns the role name of the actor
 void setProcessInstance(ProcessInstance processInstance)
          Set the process instance (when created).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuestionEventImpl

public QuestionEventImpl(Task resolvedTask,
                         String stepId,
                         DataRecord data)
A QuestionEventImpl is built from a resolved task, a choosen target state and a filled form.

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

setProcessInstance

public void setProcessInstance(ProcessInstance processInstance)
Set the process instance (when created).

Specified by:
setProcessInstance in interface QuestionEvent

getProcessModel

public ProcessModel getProcessModel()
Returns the process model (peas). Must be not null when the task is an instance creation.

Specified by:
getProcessModel in interface QuestionEvent

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

getStepId

public String getStepId()
Returns the discussed step id

Specified by:
getStepId in interface QuestionEvent


Copyright © 2016 Silverpeas. All Rights Reserved.