Class Task

    • Constructor Detail

      • Task

        public Task()
    • Method Detail

      • getString

        protected String getString​(Map params,
                                   String key)
        Return a trimmed String that represents the value from the passed in params Map for the given key
        Parameters:
        params - The Map that holds a String value or a Set containing a String value for the given key
        key - The key to use to look up the String value in params Map
        Returns:
        A trimmed String for the given key from the params Map.
      • getWebContent

        protected static String getWebContent​(String url,
                                              Locale locale)
                                       throws WorkflowException
        Reads the content in from a URL and returns as a String.
        Parameters:
        url - The URL to fetch content from.
        locale - The locale used to construct error messages.
        Returns:
        A string of the contents fetched from the URL.
        Throws:
        WorkflowException - Thrown if the URL is malformed, or there is an error fetching content.
      • getAttributeMapping

        protected List getAttributeMapping​(Map params)
      • getRequestURL

        protected String getRequestURL​(Map map)