Class WorkflowStateBean

java.lang.Object
de.xima.fc.workflow.designer.bean.WorkflowStateBean
All Implemented Interfaces:
Serializable

@ViewScoped @Named public class WorkflowStateBean extends Object implements Serializable
Bean that handles deleting states, creating new states and viewing existing states in the workflow designer.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • WorkflowStateBean

      public WorkflowStateBean()
  • Method Details

    • deleteState

      public void deleteState(IElementPrototypeWrapper<?> item)
      Callback invoked via the delete button of the WorkflowState prototype.
      Parameters:
      item - Item representing the state to delete.
    • isMarkedForDeletion

      public boolean isMarkedForDeletion(IElementPrototypeWrapper<?> item)
      Callback method for the XHTML view.
      Parameters:
      item - Prototype item to check.
      Returns:
      Whether the state was marked for deletion.
    • isNewState

      public boolean isNewState(IElementPrototypeWrapper<?> item)
      Parameters:
      item - Item to check that corresponds to a EWorkflowNodeType.FC_CHANGE_STATE.
      Returns:
      true if the given item is a state change prototype for a new state.
    • isShowDeleteButton

      public boolean isShowDeleteButton(IElementPrototypeWrapper<?> item)
      Used in the XHTML page to check whether a state can be deleted. If not, no delete button is shown.
      Parameters:
      item - Item to check,
      Returns:
      true if the state is potentially deletable, false otherwise.
    • isShowRestoreButton

      public boolean isShowRestoreButton(IElementPrototypeWrapper<?> item)
      Used in the XHTML page to check whether a state can be deleted. If not, no delete button is shown.
      Parameters:
      item - Item to check,
      Returns:
      true if the state is potentially deletable, false otherwise.
    • restoreState

      public void restoreState(IElementPrototypeWrapper<?> item)
      Callback invoked via the delete button of the WorkflowState prototype.
      Parameters:
      item - Item representing the state to delete.