Class WorkflowStateBean
java.lang.Object
de.xima.fc.workflow.designer.bean.WorkflowStateBean
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteState
(IElementPrototypeWrapper<?> item) Callback invoked via the delete button of theWorkflowState
prototype.boolean
Callback method for the XHTML view.boolean
isNewState
(IElementPrototypeWrapper<?> item) boolean
Used in the XHTML page to check whether a state can be deleted.boolean
Used in the XHTML page to check whether a state can be deleted.void
restoreState
(IElementPrototypeWrapper<?> item) Callback invoked via the delete button of theWorkflowState
prototype.
-
Constructor Details
-
WorkflowStateBean
public WorkflowStateBean()
-
-
Method Details
-
deleteState
Callback invoked via the delete button of theWorkflowState
prototype.- Parameters:
item
- Item representing the state to delete.
-
isMarkedForDeletion
Callback method for the XHTML view.- Parameters:
item
- Prototype item to check.- Returns:
- Whether the state was marked for deletion.
-
isNewState
- Parameters:
item
- Item to check that corresponds to aEWorkflowNodeType.FC_CHANGE_STATE
.- Returns:
true
if the given item is a state change prototype for a new state.
-
isShowDeleteButton
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
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
Callback invoked via the delete button of theWorkflowState
prototype.- Parameters:
item
- Item representing the state to delete.
-