Package de.xima.fc.workflow.model
Class TaskExecutionResultWrapper
java.lang.Object
de.xima.fc.workflow.model.TaskExecutionResultWrapper
- All Implemented Interfaces:
IWorkflowResponse,IServletResponse,Serializable
Wrapper to treat a
IRemoteEventExecutionResult as a
IWorkflowResponse.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]The binary data for the response.longApplies only whentypeis set toFORM_RECORDis set, this is the ID of the form record to which to redirect.getType()getValue()Whentypeis set to a binary response type (e.g.booleanbooleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.xima.fc.interfaces.servlet.IServletResponse
getHttpHeader, getHttpStatusCode
-
Constructor Details
-
TaskExecutionResultWrapper
-
-
Method Details
-
getValue
Description copied from interface:IServletResponseWhentypeis set to a binary response type (e.g.SHOW_FILE), the file name of the returned file.When
typeis set to a non-binary response (e.g.JSON), the plain-text content of the response.- Specified by:
getValuein interfaceIServletResponse- Returns:
- The plain-text content of the HTTP response.
-
getContentType
Description copied from interface:IServletResponseApplies only whentypeis set toSHOW_FILE:Must return the content type (=mime type) that is to be sent along with the binary data. When this is either
nullor blank, an attempt is made to guess the content type from the binary data. Please note that this may fail to determine the actual content type, you should always provide a content type.- Specified by:
getContentTypein interfaceIServletResponse- Returns:
- The content type of the binary data.
-
getSessionAttributes
- Specified by:
getSessionAttributesin interfaceIServletResponse- Returns:
- A
Mapwith attributes that should be written to theHttpSession. Existing values in theHttpSessionare overwritten.
-
getType
- Specified by:
getTypein interfaceIServletResponse- Returns:
- The type of response, such as whether a plain text or binary file should be returned, or a redirect should be performed.
-
getBinValue
public byte[] getBinValue()Description copied from interface:IServletResponse- Specified by:
getBinValuein interfaceIServletResponse- Returns:
- The binary content of the HTTP response.
-
isForceDownload
public boolean isForceDownload()Description copied from interface:IServletResponse- Specified by:
isForceDownloadin interfaceIServletResponse- Returns:
- If
true, attempts to prevent browsers from showing the binary content inline. Iffalse, the browser may show the content inline, which is useful for PDF, image or plain text files. Please note that support for this differs between browsers.
-
getEncoding
Description copied from interface:IServletResponse- Specified by:
getEncodingin interfaceIServletResponse- Returns:
- The encoding that is to be used for encoding the response.
-
isSuccess
public boolean isSuccess()- Specified by:
isSuccessin interfaceIWorkflowResponse- Returns:
trueindicates that the workflow was run successfully,falseindicates that an error occurred during workflow processing.
-
getMsgCode
- Specified by:
getMsgCodein 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.
-
getVorgang
- Specified by:
getVorgangin interfaceIWorkflowResponse- Returns:
- The current
Vorgangthat was processed.
-
getLongValue
public long getLongValue()Description copied from interface:IServletResponseApplies only whentypeis set toFORM_RECORDis set, this is the ID of the form record to which to redirect.- Specified by:
getLongValuein interfaceIServletResponse- Returns:
- The long value content for the response.
-