Class FcPromptQueryBean
- java.lang.Object
-
- de.xima.fc.workflow.designer.bean.nodes.FcPromptQueryBean
-
- All Implemented Interfaces:
IElementPropertiesBean<FcPromptQueryProps,WorkflowNode>,INodePropertiesBean<FcPromptQueryProps>,Serializable
@ViewScoped @Named public class FcPromptQueryBean extends Object implements INodePropertiesBean<FcPromptQueryProps>, Serializable
Bean with additional logic for controlling theEWorkflowNodeType.FC_PROMPT_QUERYaction.- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromptQueryActionViewModelgetViewModel()Gets the view model for editing the prompt query settings.voidonPromptQueryChange()Callback invoked when the selected prompt query changes.voidprepareViewForElement(IElementPropInitParams<FcPromptQueryProps> params)Called each time when the properties panel for a certain workflow element is loaded.-
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.elements.IElementPropertiesBean
updateCurrentProperties, updateCurrentTask
-
Methods inherited from interface de.xima.fc.interfaces.workflow.nodes.INodePropertiesBean
retrieveCurrentProperties
-
-
-
-
Method Detail
-
getViewModel
public PromptQueryActionViewModel getViewModel()
Gets the view model for editing the prompt query settings.- Returns:
- The view model.
-
onPromptQueryChange
public void onPromptQueryChange()
Callback invoked when the selected prompt query changes. Updates the view model for the JSON and file parameters.
-
prepareViewForElement
public void prepareViewForElement(IElementPropInitParams<FcPromptQueryProps> params) throws Exception
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<FcPromptQueryProps,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.
-
-