Class FcStateTimerBean
- java.lang.Object
-
- de.xima.fc.workflow.designer.bean.triggers.FcStateTimerBean
-
- All Implemented Interfaces:
IElementPropertiesBean<FcStateTimerProps,WorkflowTrigger>
,ITriggerPropertiesBean<FcStateTimerProps>
,Serializable
@ViewScoped @Named public class FcStateTimerBean extends Object implements ITriggerPropertiesBean<FcStateTimerProps>, Serializable
Bean for the properties panel ofEWorkflowTriggerType.FC_TIME_POINT
trigger workflow elements.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FcStateTimerBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToExistingFormRecords()
Callback for the button that lets the user apply the trigger to existing form records.void
prepareViewForElement(IElementPropInitParams<FcStateTimerProps> params)
Called each time when the properties panel for a certain workflow element is loaded.void
updateCurrentProperties(IElementUpdateCurrentPropsParams<FcStateTimerProps> params)
Called each time when the data of the selected node was edited externally.void
updateCurrentTask(IElementUpdateCurrentTaskParams params)
Called each time when task of the selection has changed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.xima.fc.interfaces.workflow.triggers.ITriggerPropertiesBean
retrieveCurrentProperties
-
-
-
-
Method Detail
-
applyToExistingFormRecords
public void applyToExistingFormRecords()
Callback for the button that lets the user apply the trigger to existing form records.
-
prepareViewForElement
public void prepareViewForElement(IElementPropInitParams<FcStateTimerProps> params) throws Exception
Description copied from interface:IElementPropertiesBean
Called 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:
prepareViewForElement
in interfaceIElementPropertiesBean<FcStateTimerProps,WorkflowTrigger>
- 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.
-
updateCurrentProperties
public void updateCurrentProperties(IElementUpdateCurrentPropsParams<FcStateTimerProps> params) throws Exception
Description copied from interface:IElementPropertiesBean
Called 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 (seeIElementHandler.getJavaScript(boolean)
) 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:
updateCurrentProperties
in interfaceIElementPropertiesBean<FcStateTimerProps,WorkflowTrigger>
- 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.
-
updateCurrentTask
public void updateCurrentTask(IElementUpdateCurrentTaskParams params) throws Exception
Description copied from interface:IElementPropertiesBean
Called each time when task of the selection has changed. This happens, for example, when the element is moved between different tasks. Can be used when the bean wishes to keep track of the current task. Otherwise, this does not need to be overridden.- Specified by:
updateCurrentTask
in interfaceIElementPropertiesBean<FcStateTimerProps,WorkflowTrigger>
- 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.
-
-