Class TaskExecutionResultWrapper

    • Method Detail

      • getValue

        public String getValue()
        Description copied from interface: IServletResponse
        When type 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.

        When type is set to REDIRECT, the URL to which to redirect.

        Specified by:
        getValue in interface IServletResponse
        Returns:
        The plain-text content of the HTTP response.
      • getContentType

        public String getContentType()
        Description copied from interface: IServletResponse
        Applies only when type is set to SHOW_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 interface IServletResponse
        Returns:
        The content type of the binary data.
      • getType

        public EResponseType getType()
        Specified by:
        getType in interface IServletResponse
        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
        The binary data for the response. Applies only when type is set to SHOW_FILE.
        Specified by:
        getBinValue in interface IServletResponse
        Returns:
        The binary content of the HTTP response.
      • isForceDownload

        public boolean isForceDownload()
        Description copied from interface: IServletResponse
        Applies only when type is set to SHOW_FILE.
        Specified by:
        isForceDownload in interface IServletResponse
        Returns:
        If true, attempts to prevent browsers from showing the binary content inline. If false, 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.
      • isSuccess

        public boolean isSuccess()
        Specified by:
        isSuccess in interface IWorkflowResponse
        Returns:
        true indicates that the workflow was run successfully, false indicates that an error occurred during workflow processing.
      • getMsgCode

        public ETextbausteinMsgCode getMsgCode()
        Specified by:
        getMsgCode in interface IWorkflowResponse
        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.
      • getLongValue

        public long getLongValue()
        Description copied from interface: IServletResponse
        Applies only when type is set to FORM_RECORD is set, this is the ID of the form record to which to redirect.
        Specified by:
        getLongValue in interface IServletResponse
        Returns:
        The long value content for the response.