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 ofIWorkflowExecutionPostProcessorthat 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 voidpostProcess(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 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.
-
-
Method Detail
-
postProcess
public void postProcess(IWorkflowExecutionPostProcessParams params) throws IOException
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
-
-