|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wizard4j.engine.FlowchartSession
public class FlowchartSession
For each flowchart execution, a FlowchartSession needs to be
created. The session reacts to user
FlowchartRequests (parsing and
state update) and it provides new
FlowchartResponses to the user.
| Constructor Summary | |
|---|---|
FlowchartSession(Flowchart flowchart)
|
|
| Method Summary | |
|---|---|
boolean |
getActionMask(EUserAction userAction)
|
java.lang.String |
getBuiltInFlowchartPresentation(EBuiltInFlowchartPresentationMode presentationMode)
|
java.lang.String |
getBuiltInResultPresentation(EBuiltInResultPresentationMode presentationMode)
|
FlowchartResponse |
getCurrentFlowchartResponse()
|
FlowchartMonitor |
getFlowchartMonitor()
|
EGroupType |
getGroupType()
|
ResultNode |
getResult()
|
java.lang.String |
getState()
|
FlowchartResponse |
index(int index)
|
boolean |
isAllowMultipleRatesPerRun()
|
boolean |
isAllowMultipleSavesPerRun()
|
boolean |
isAutomaticSave()
|
boolean |
isResendResponseAtRequestError()
|
boolean |
isResendResponseWithErrorAtParameterError()
|
boolean |
isStoreStateInResponse()
|
FlowchartResponse |
next(FlowchartRequest flowchartRequest)
|
FlowchartResponse |
previous()
|
FlowchartResponse |
rate(int rating)
|
FlowchartResponse |
save()
|
void |
setActionMask(EUserAction userAction,
boolean mask)
Allows to explicitly mask certain user actions. |
void |
setAllowMultipleRatesPerRun(boolean allowMultipleRatesPerRun)
To enable/disable multiple ratings during a single flowchart execution. |
void |
setAllowMultipleSavesPerRun(boolean allowMultipleSavesPerRun)
To enable/disable multiple savings during a single flowchart execution. |
void |
setAutomaticSave(boolean automaticSave)
To enable/disable automatic saving. |
void |
setFlowchartMonitor(FlowchartMonitor flowchartMonitor)
To enable session monitoring, a FlowchartMonitor instance must be assigned to the session. |
void |
setGroupType(EGroupType groupType)
|
void |
setResendResponseAtRequestError(boolean resendResponseAtRequestError)
This determines whether at request error an exception is thrown or the original response is returned. |
void |
setResendResponseWithErrorAtParameterError(boolean resendResponseWithErrorAtParameterError)
This determines whether at parameter error an exception is thrown or the original response is returned. |
void |
setStoreStateInResponse(boolean storeStateInResponse)
This must be set for stateless sessions (cfr. |
FlowchartResponse |
start()
|
FlowchartResponse |
state(java.lang.String state)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlowchartSession(Flowchart flowchart)
flowchart - | Method Detail |
|---|
public FlowchartResponse start()
throws UnexpectedRequestException
UnexpectedRequestException
public FlowchartResponse next(FlowchartRequest flowchartRequest)
throws UnexpectedRequestException,
InvalidValueException
flowchartRequest -
UnexpectedRequestException
InvalidValueException
public FlowchartResponse previous()
throws UnexpectedRequestException
UnexpectedRequestException
public FlowchartResponse index(int index)
throws UnexpectedRequestException
index -
UnexpectedRequestException
public FlowchartResponse state(java.lang.String state)
throws UnexpectedRequestException
state -
UnexpectedRequestException
public FlowchartResponse save()
throws UnexpectedRequestException
UnexpectedRequestException
public FlowchartResponse rate(int rating)
throws UnexpectedRequestException
rating -
UnexpectedRequestException
public void setActionMask(EUserAction userAction,
boolean mask)
userAction - mask - public boolean getActionMask(EUserAction userAction)
userAction -
public FlowchartResponse getCurrentFlowchartResponse()
public ResultNode getResult()
public java.lang.String getState()
public java.lang.String getBuiltInFlowchartPresentation(EBuiltInFlowchartPresentationMode presentationMode)
presentationMode -
public java.lang.String getBuiltInResultPresentation(EBuiltInResultPresentationMode presentationMode)
presentationMode -
public void setFlowchartMonitor(FlowchartMonitor flowchartMonitor)
flowchartMonitor - public FlowchartMonitor getFlowchartMonitor()
public void setGroupType(EGroupType groupType)
groupType - public void setResendResponseAtRequestError(boolean resendResponseAtRequestError)
resendResponseAtRequestError - public void setResendResponseWithErrorAtParameterError(boolean resendResponseWithErrorAtParameterError)
resendResponseWithErrorAtParameterError - public boolean isAllowMultipleSavesPerRun()
public void setAllowMultipleSavesPerRun(boolean allowMultipleSavesPerRun)
allowMultipleSavesPerRun - public boolean isAllowMultipleRatesPerRun()
public void setAllowMultipleRatesPerRun(boolean allowMultipleRatesPerRun)
allowMultipleRatesPerRun - public boolean isAutomaticSave()
public void setAutomaticSave(boolean automaticSave)
FlowchartMonitor.eventSave(ResultNode)
is called).
When the value is cleared there will be a user interaction that allows to explicitly save the result.
Default is false.
automaticSave - public boolean isStoreStateInResponse()
public void setStoreStateInResponse(boolean storeStateInResponse)
storeStateInResponse - public EGroupType getGroupType()
public boolean isResendResponseAtRequestError()
public boolean isResendResponseWithErrorAtParameterError()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||