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 Details

    • 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: 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 interface IElementPropertiesBean<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 when IElementPropertiesBean.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.