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 TypeMethodDescriptionvoiddeleteState(IElementPrototypeWrapper<?> item) Callback invoked via the delete button of theWorkflowStateprototype.booleanCallback method for the XHTML view.booleanisNewState(IElementPrototypeWrapper<?> item) booleanUsed in the XHTML page to check whether a state can be deleted.booleanUsed in the XHTML page to check whether a state can be deleted.voidrestoreState(IElementPrototypeWrapper<?> item) Callback invoked via the delete button of theWorkflowStateprototype.
-
Constructor Details
-
WorkflowStateBean
public WorkflowStateBean()
-
-
Method Details
-
deleteState
Callback invoked via the delete button of theWorkflowStateprototype.- 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:
trueif 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:
trueif the state is potentially deletable,falseotherwise.
-
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:
trueif the state is potentially deletable,falseotherwise.
-
restoreState
Callback invoked via the delete button of theWorkflowStateprototype.- Parameters:
item- Item representing the state to delete.
-