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.long
Applies only whentype
is set toFORM_RECORD
is set, this is the ID of the form record to which to redirect.getType()
getValue()
Whentype
is set to a binary response type (e.g.boolean
boolean
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
getHttpHeader, getHttpStatusCode
-
Constructor Details
-
TaskExecutionResultWrapper
-
-
Method Details
-
getValue
Description copied from interface:IServletResponse
Whentype
is set to a binary response type (e.g.SHOW_FILE
), the file name of the returned file.When
type
is set to a non-binary response (e.g.JSON
), the plain-text content of the response.- Specified by:
getValue
in interfaceIServletResponse
- Returns:
- The plain-text content of the HTTP response.
-
getContentType
Description copied from interface:IServletResponse
Applies only whentype
is set toSHOW_FILE
:Must return the content type (=mime type) that is to be sent along with the binary data. When this is either
null
or 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:
getContentType
in interfaceIServletResponse
- Returns:
- The content type of the binary data.
-
getSessionAttributes
- Specified by:
getSessionAttributes
in interfaceIServletResponse
- Returns:
- A
Map
with attributes that should be written to theHttpSession
. Existing values in theHttpSession
are overwritten.
-
getType
- Specified by:
getType
in 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:
getBinValue
in interfaceIServletResponse
- Returns:
- The binary content of the HTTP response.
-
isForceDownload
public boolean isForceDownload()Description copied from interface:IServletResponse
- Specified by:
isForceDownload
in 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:
getEncoding
in interfaceIServletResponse
- Returns:
- The encoding that is to be used for encoding the response.
-
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.
-
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.
-
getVorgang
- Specified by:
getVorgang
in interfaceIWorkflowResponse
- Returns:
- The current
Vorgang
that was processed.
-
getLongValue
public long getLongValue()Description copied from interface:IServletResponse
Applies only whentype
is set toFORM_RECORD
is set, this is the ID of the form record to which to redirect.- Specified by:
getLongValue
in interfaceIServletResponse
- Returns:
- The long value content for the response.
-