Class SupplyDefaultServletResponsePostProcessor

java.lang.Object
de.xima.fc.workflow.SupplyDefaultServletResponsePostProcessor
All Implemented Interfaces:
IWorkflowExecutionPostProcessor, Serializable

public final class SupplyDefaultServletResponsePostProcessor extends Object implements IWorkflowExecutionPostProcessor
Implementation of IWorkflowExecutionPostProcessor that checks whether a servlet response was set by the workflow. If not, adds a default response with one of the given message codes, depending on whether the workflow was successful. Additionally, if the workflow was not successful, overwrites the template with the given error template, if any.
Since:
7.0.11
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • SupplyDefaultServletResponsePostProcessor

      public SupplyDefaultServletResponsePostProcessor(ETextbausteinMsgCode success, ETextbausteinMsgCode failure)
      Parameters:
      success - Message code to reply with when the workflow was executed successfully. May be null to not set a default servlet response.
      failure - Message code to reply with when the workflow execution failed. May be null to not set a default servlet response / overwrite the response in case of an error.
  • Method Details