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 the
EWorkflowNodeType.FC_PROMPT_QUERY action.- Since:
- 8.5.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets the view model for editing the prompt query settings.voidCallback invoked when the selected prompt query changes.voidCalled each time when the properties panel for a certain workflow element is loaded.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IElementPropertiesBean
updateCurrentProperties, updateCurrentTaskMethods inherited from interface INodePropertiesBean
retrieveCurrentProperties
-
Method Details
-
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.
-