Package de.xima.fc.mdl.workflow
Class WorkflowResponse
- java.lang.Object
-
- de.xima.fc.mdl.response.ServletResponse
-
- de.xima.fc.mdl.workflow.WorkflowResponse
-
- All Implemented Interfaces:
IWorkflowResponse
,IServletResponse
,Serializable
public class WorkflowResponse extends ServletResponse implements IWorkflowResponse
Modelklasse der Antwort einer Workflow-Verarbeitung- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
success
-
Fields inherited from class de.xima.fc.mdl.response.ServletResponse
binValue, contentType, encoding, forceDownload, httpHeader, httpStatusCode, sessionAttributes, type, value
-
-
Constructor Summary
Constructors Constructor Description WorkflowResponse(Vorgang vorgang, EResponseType type, Textbaustein value, boolean success)
WorkflowResponse(Vorgang vorgang, EResponseType type, String value, boolean success)
WorkflowResponse(Vorgang vorgang, EResponseType type, String value, byte[] binValue, boolean success)
WorkflowResponse(Vorgang vorgang, EResponseType type, String value, byte[] binValue, boolean forceDownload, boolean success)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ETextbausteinMsgCode
getMsgCode()
Vorgang
getVorgang()
boolean
isSuccess()
void
setMsgCode(ETextbausteinMsgCode msgCode)
void
setSuccess(boolean success)
Setter ob der Workflow erfolgreich war-
Methods inherited from class de.xima.fc.mdl.response.ServletResponse
addHttpHeader, getBinValue, getContentType, getEncoding, getHttpHeader, getHttpStatusCode, getSessionAttributes, getType, getValue, isForceDownload, setBinValue, setContentType, setEncoding, setForceDownload, setHttpHeader, setHttpStatusCode, setSessionAttributes, setType, setValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.servlet.IServletResponse
getBinValue, getContentType, getEncoding, getHttpHeader, getHttpStatusCode, getSessionAttributes, getType, getValue, isForceDownload
-
-
-
-
Constructor Detail
-
WorkflowResponse
public WorkflowResponse(Vorgang vorgang, EResponseType type, String value, byte[] binValue, boolean forceDownload, boolean success)
-
WorkflowResponse
public WorkflowResponse(Vorgang vorgang, EResponseType type, String value, byte[] binValue, boolean success)
-
WorkflowResponse
public WorkflowResponse(Vorgang vorgang, EResponseType type, String value, boolean success)
-
WorkflowResponse
public WorkflowResponse(Vorgang vorgang, EResponseType type, Textbaustein value, boolean success)
-
-
Method Detail
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccess
in interfaceIWorkflowResponse
- Returns:
true
indicates that the workflow was run successfully,false
indicates that an error occurred during workflow processing.
-
setSuccess
public void setSuccess(boolean success)
Setter ob der Workflow erfolgreich war- Parameters:
success
-Boolean
der zu setzende Erfolgs-Status
-
getVorgang
public Vorgang getVorgang()
- Specified by:
getVorgang
in interfaceIWorkflowResponse
- Returns:
- The current
Vorgang
that was processed.
-
setMsgCode
public void setMsgCode(ETextbausteinMsgCode msgCode)
-
getMsgCode
public ETextbausteinMsgCode getMsgCode()
- Specified by:
getMsgCode
in interfaceIWorkflowResponse
- Returns:
- The response text that should be sent to the browser as a result of running the workflow. This may be a success, an error, or some other more specific message.
-
-