Class GetDynamicComboList

java.lang.Object
com.uc4.communication.requests.XMLRequest
com.uc4.communication.requests.GetDynamicComboList
All Implemented Interfaces:
Iterable<String>

public class GetDynamicComboList extends XMLRequest implements Iterable<String>
Returns a list of elements for a combo element, radio list or checklist in a PromptSet. This request should be used to get a list of values if the dynamic property of the prompt element is set to true

In this case the content of the prompt element depends on the values of other prompt elements. Therefore all prompt elements need to be passed in the constructor of this class. The values are sent to the Automation Engine in order to create a list of values.

  • Constructor Details

    • GetDynamicComboList

      public GetDynamicComboList(String variableName, UC4ObjectName promptSet, int runID, TaskPromptSetContent... content)
      Creates a new GetDynamicComboList request in order to get the list of values of a dynamic ComboElement in a prompt.
      Parameters:
      variableName - Name of the Variable (ComboElement)
      promptSet - Name of the PromptSet which contains the variable
      runID - RunID of the task
      content - Content of all PromptSets
    • GetDynamicComboList

      public GetDynamicComboList(String variableName, UC4ObjectName promptSet, UC4Object object, TaskPromptSetContent... content)
      Creates a new GetDynamicComboList request in order to get the list of values of a dynamic ComboElement in a prompt.
      Parameters:
      variableName - Name of the Variable (ComboElement)
      promptSet - Name of the PromptSet which contains the variable
      object - Object
      content - Content of all PromptSets
    • GetDynamicComboList

      public GetDynamicComboList(String variableName, UC4ObjectName promptSet, ITaskItem task, TaskPromptSetContent... content)
      Creates a new GetDynamicComboList request in order to get the list of values of a dynamic ComboElement in a prompt.
      Parameters:
      variableName - Name of the Variable (ComboElement)
      promptSet - Name of the PromptSet which contains the variable
      task - Task in a Workflow
      content - Content of all PromptSets
  • Method Details

    • getSrc

      protected String getSrc()
      Description copied from class: XMLRequest
      Returns the request source. This method is used internally.
      Specified by:
      getSrc in class XMLRequest
      Returns:
      Source
    • createRequest

      protected void createRequest(com.uc4.util.XMLDocument doc, Element request, ConnectionAttributes sessionInfo)
      Description copied from class: XMLRequest
      Creates the XML Document for the request. This method is used internally.
      Specified by:
      createRequest in class XMLRequest
      Parameters:
      doc - Document, used to create new Elements
      request - Request Element - classes append information to this request element
      sessionInfo - Information about the session
    • handleContent

      protected void handleContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session)
      Description copied from class: XMLRequest
      Sub classes extract the values from the XML document and provide public getter methods.
      Overrides:
      handleContent in class XMLRequest
      Parameters:
      doc - XML Document
      session - Info about the user session
    • iterator

      public Iterator<String> iterator()
      Returns an Iterator to get the valus of a dynamic Combo Box.
      Specified by:
      iterator in interface Iterable<String>
      Returns:
      Iterator
    • size

      public int size()
      Returns the number of elements in the Combo Box.
      Returns:
      Number of elements