Class SupplyDefaultWorkflowStatePostProcessor

java.lang.Object
de.xima.fc.workflow.SupplyDefaultWorkflowStatePostProcessor
All Implemented Interfaces:
IWorkflowExecutionPostProcessor, Serializable

public class SupplyDefaultWorkflowStatePostProcessor extends Object implements IWorkflowExecutionPostProcessor
Implementation of IWorkflowExecutionPostProcessor that checks whether a WorkflowState was set by the workflow. If not, sets the state to the given default.
Since:
7.0.11
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • 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 Details

    • postProcess

      public void postProcess(IWorkflowExecutionPostProcessParams params)
      Description copied from interface: IWorkflowExecutionPostProcessor
      Called just before the workflow completes. Lets you modify the workflow, e.g. by providing a default servlet response when none was set. Note that the form record may have been deleted by the workflow. If you perform actions that rely on the existing of the form record, check beforehand.
      Specified by:
      postProcess in interface IWorkflowExecutionPostProcessor
      Parameters:
      params - Parameters with the workflow context and the current workflow result.