com.silverpeas.workflow.api.instance
Interface Question

All Known Implementing Classes:
QuestionImpl

public interface Question

A Question object represents a question asked for the instance


Method Summary
 void answer(String responseText)
          Answer this question
 State getFromState()
          Get the state where the question was asked
 User getFromUser()
          Get the user who asked the question
 String getId()
          Get the question id
 ProcessInstance getProcessInstance()
          Get the process instance where the question was asked
 Date getQuestionDate()
          Get the date when question was asked
 String getQuestionText()
          Get the question content
 Date getResponseDate()
          Get the date when question was asked
 String getResponseText()
          Get the response content
 State getTargetState()
          Get the destination state for the question
 User getToUser()
          Get the user who received the question
 boolean hasResponse()
          Is a response was sent to this question
 boolean isRelevant()
          Has this question been answered and taken in account, if yes, so it's not relevant anymore (return false)
 

Method Detail

getId

String getId()
Get the question id


getProcessInstance

ProcessInstance getProcessInstance()
Get the process instance where the question was asked


getFromState

State getFromState()
Get the state where the question was asked


getTargetState

State getTargetState()
Get the destination state for the question


getQuestionText

String getQuestionText()
Get the question content


getResponseText

String getResponseText()
Get the response content


answer

void answer(String responseText)
Answer this question


getFromUser

User getFromUser()
                 throws WorkflowException
Get the user who asked the question

Throws:
WorkflowException

getToUser

User getToUser()
               throws WorkflowException
Get the user who received the question

Throws:
WorkflowException

getQuestionDate

Date getQuestionDate()
Get the date when question was asked


getResponseDate

Date getResponseDate()
Get the date when question was asked


hasResponse

boolean hasResponse()
Is a response was sent to this question


isRelevant

boolean isRelevant()
Has this question been answered and taken in account, if yes, so it's not relevant anymore (return false)



Copyright © 2016 Silverpeas. All Rights Reserved.