Interface Question
-
- All Known Implementing Classes:
QuestionImpl
public interface Question
A Question object represents a question asked for the instance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
answer(String responseText)
Answer this questionState
getFromState()
Get the state where the question was askedUser
getFromUser()
Get the user who asked the questionString
getId()
Get the question idProcessInstance
getProcessInstance()
Get the process instance where the question was askedDate
getQuestionDate()
Get the date when question was askedString
getQuestionText()
Get the question contentDate
getResponseDate()
Get the date when question was askedString
getResponseText()
Get the response contentState
getTargetState()
Get the destination state for the questionUser
getToUser()
Get the user who received the questionboolean
hasResponse()
Is a response was sent to this questionboolean
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)
-
-