Class 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:
    Serialized Form
    • Constructor Detail

      • WorkflowStateBean

        public WorkflowStateBean()
    • Method Detail

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