Class BaseMultipleCheckBean<TData extends IMultipleCheckProps>
java.lang.Object
de.xima.fc.gui.common.bean.ABooleanExpressionBean
de.xima.fc.workflow.designer.bean.nodes.BaseMultipleCheckBean<TData>
- Type Parameters:
TData- Type of the node's property model.
- All Implemented Interfaces:
IElementPropertiesBean<TData, WorkflowNode>, INodePropertiesBean<TData>, Serializable
- Direct Known Subclasses:
FcDoUntilLoopBean, FcMultipleConditionBean, FcWhileLoopBean
public abstract class BaseMultipleCheckBean<TData extends IMultipleCheckProps>
extends ABooleanExpressionBean
implements INodePropertiesBean<TData>, Serializable
Bean for editing workflow nodes for which a complex condition need to be configured, such as an if-else condition or
a while loop.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Field Summary
Fields inherited from class ABooleanExpressionBean
localeBean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the user clicks on the add button to add a new condition.voidCalled each time when the properties panel for a certain workflow element is loaded.voidremoveCondition(int index) Called when the user clicks on the remove button on a condition.voidCalled each time when the data of the selected node was edited externally.Methods inherited from class ABooleanExpressionBean
completeCustomExpression, findNewVariableName, getOrderedCombinationTypes, getOrderedMatchConditions, lintCustomExpressionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IElementPropertiesBean
updateCurrentTaskMethods inherited from interface INodePropertiesBean
retrieveCurrentProperties
-
Constructor Details
-
BaseMultipleCheckBean
public BaseMultipleCheckBean()
-
-
Method Details
-
addCondition
public void addCondition()Called when the user clicks on the add button to add a new condition. -
prepareViewForElement
Description copied from interface:IElementPropertiesBeanCalled each time when the properties panel for a certain workflow element is loaded. This method is passed the workflow element and the properties model, and should perform whatever initialization is necessary in order for the user to start editing the properties.- Specified by:
prepareViewForElementin interfaceIElementPropertiesBean<TData extends IMultipleCheckProps, WorkflowNode>- Parameters:
params- The current element to be edited and its properties. You may store a reference to these, modify them, and return them whenIElementPropertiesBean.retrieveCurrentProperties(Object)is called.- Throws:
Exception- When the initialization failed. If an exception is thrown, the user is shown an error indicating that the properties cannot be edited.
-
removeCondition
public void removeCondition(int index) Called when the user clicks on the remove button on a condition.- Parameters:
index- Index of the condition to remove.
-
updateCurrentProperties
public void updateCurrentProperties(IElementUpdateCurrentPropsParams<TData> params) throws Exception Description copied from interface:IElementPropertiesBeanCalled each time when the data of the selected node was edited externally. Normally this does not happen. This only happens when the element handler returned a custom client handler (seegetJavaScript) that invoked an external custom params update from the flowchart. If this bean stored the data in a field duringIElementPropertiesBean.prepareViewForElement(IElementPropInitParams), it should update that field.- Specified by:
updateCurrentPropertiesin interfaceIElementPropertiesBean<TData extends IMultipleCheckProps, WorkflowNode>- Parameters:
params- Params with the old and new data.- Throws:
Exception- When the data could not be updated. This exception is caught and an error message is shown to the user.
-
getAllVariables
- Specified by:
getAllVariablesin classABooleanExpressionBean
-