Package de.xima.fc.workflow
Class SupplyDefaultWorkflowStatePostProcessor
- java.lang.Object
-
- de.xima.fc.workflow.SupplyDefaultWorkflowStatePostProcessor
-
- All Implemented Interfaces:
IWorkflowExecutionPostProcessor,Serializable
public class SupplyDefaultWorkflowStatePostProcessor extends Object implements IWorkflowExecutionPostProcessor
Implementation ofIWorkflowExecutionPostProcessorthat checks whether aWorkflowStatewas set by the workflow. If not, sets the state to the given default.- Since:
- 7.0.11
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SupplyDefaultWorkflowStatePostProcessor(WorkflowState defaultState)SupplyDefaultWorkflowStatePostProcessor(EWorkflowStateType systemState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidpostProcess(IWorkflowExecutionPostProcessParams params)Called just before the workflow completes.
-
-
-
Constructor Detail
-
SupplyDefaultWorkflowStatePostProcessor
public SupplyDefaultWorkflowStatePostProcessor(EWorkflowStateType systemState)
- Parameters:
systemState- State to set when the form record has got no state at the end of the workflow.
-
SupplyDefaultWorkflowStatePostProcessor
public SupplyDefaultWorkflowStatePostProcessor(WorkflowState defaultState)
- Parameters:
defaultState- State to set when the form record has got no state at the end of the workflow.
-
-
Method Detail
-
postProcess
public void postProcess(IWorkflowExecutionPostProcessParams params) throws Exception
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:
Exception- When post processing step could not be applied. This will result in a workflow failure. Catch the exception youself if you do not wish for that to happen.
-
-