Package de.xima.fc.workflow
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 Summary
ConstructorsConstructorDescriptionSupplyDefaultServletResponsePostProcessor(ETextbausteinMsgCode success, ETextbausteinMsgCode failure) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled just before the workflow completes.
-
Constructor Details
-
SupplyDefaultServletResponsePostProcessor
public SupplyDefaultServletResponsePostProcessor(ETextbausteinMsgCode success, ETextbausteinMsgCode failure) - Parameters:
success- Message code to reply with when the workflow was executed successfully. May benullto not set a default servlet response.failure- Message code to reply with when the workflow execution failed. May benullto not set a default servlet response / overwrite the response in case of an error.
-
-
Method Details
-
postProcess
Description copied from interface:IWorkflowExecutionPostProcessorCalled just before the workflow completes.- Specified by:
postProcessin interfaceIWorkflowExecutionPostProcessor- Parameters:
params- Parameters with the workflow context and the current workflow result.- Throws:
IOException
-