Class ActionDummy

    • Constructor Detail

      • ActionDummy

        public ActionDummy()
      • ActionDummy

        public ActionDummy​(String name)
    • Method Detail

      • execute

        public Result execute​(Result prevResult,
                              int nr)
                       throws HopException
        Description copied from interface: IAction
        Execute the action. The previous result and number of rows are provided to the method for the purpose of chaining actions, pipelines, etc.
        Specified by:
        execute in interface IAction
        Parameters:
        prevResult - the previous result
        nr - the number of rows
        Returns:
        the Result object from execution of this action
        Throws:
        HopException - if any Hop exceptions occur
      • getXml

        public String getXml()
        Description copied from class: ActionBase
        This method is called by Hop whenever a action needs to serialize its settings to XML. It is called when saving a workflow in HopGui. The method returns an XML string, containing the serialized settings. The string contains a series of XML tags, typically one tag per setting. The helper class org.apache.hop.core.xml.XmlHandler is typically used to construct the XML string.
        Specified by:
        getXml in interface IAction
        Overrides:
        getXml in class ActionBase
        Returns:
        the xml representation of the action
      • loadXml

        public void loadXml​(Node actionNode,
                            IHopMetadataProvider metadataProvider,
                            IVariables variables)
                     throws HopXmlException
        Description copied from interface: IAction
        This method is called by Apache Hop whenever a action needs to read its settings from XML. The XML node containing the action's settings is passed in as an argument. Again, the helper class org.apache.hop.core.xml.XmlHandler is typically used to conveniently read the settings from the XML node.
        Specified by:
        loadXml in interface IAction
        Overrides:
        loadXml in class ActionBase
        Parameters:
        actionNode - the top-level XML node
        metadataProvider - The metadataProvider to optionally load from.
        Throws:
        HopXmlException - if any errors occur during the loading of the XML
      • check

        public void check​(List<ICheckResult> remarks,
                          WorkflowMeta workflowMeta,
                          IVariables variables,
                          IHopMetadataProvider metadataProvider)
        Description copied from class: ActionBase
        Allows Action objects to check themselves for consistency
        Specified by:
        check in interface IAction
        Overrides:
        check in class ActionBase
        Parameters:
        remarks - List of CheckResult objects indicating consistency status
        workflowMeta - the metadata object for the action
        variables - the variable variables to resolve string expressions with variables with
        metadataProvider - the MetaStore to load common elements from