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 TypeMethodDescriptionvoid
Called 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 benull
to not set a default servlet response.failure
- Message code to reply with when the workflow execution failed. May benull
to not set a default servlet response / overwrite the response in case of an error.
-
-
Method Details
-
postProcess
Description copied from interface:IWorkflowExecutionPostProcessor
Called just before the workflow completes.- Specified by:
postProcess
in interfaceIWorkflowExecutionPostProcessor
- Parameters:
params
- Parameters with the workflow context and the current workflow result.- Throws:
IOException
-