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 ofIWorkflowExecutionPostProcessor
that check 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.- Since:
- 7.0.11
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SupplyDefaultServletResponsePostProcessor(ETextbausteinMsgCode success, ETextbausteinMsgCode failure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
postProcess(IWorkflowExecutionPostProcessParams params)
Called just before the workflow completes.
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
postProcess
public void postProcess(IWorkflowExecutionPostProcessParams params) throws IOException
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
-
-