Base object from which custom Action Importers derive and define behavior.
public abstract class ActionImporter
Example
The following example defines an ExampleActionImporter class that implements an Import method which returns a single GlobalSearchDocument for import.
public class ExampleActionImporter : ActionImporter { public override List<GlobalSearchDocument> Import() { var documents = new List<GlobalSearchDocument>(); documents.Add(new GlobalSearchDocument(1, 1)); return documents; } }
Remarks
If your custom node is designed as an importer for GlobalAction, a class must be defined within your assembly that inherits the class and implements the Import method from the ActionImporter class.
This class does not need to be defined on nodes that are not configured both as an import type and for the GlobalAction product type.
The NodeDirectory field refers to a folder containing the files within the .s9n file executing on the process. This folder exists only as long as the specific process is executing the custom node, and is deleted when the Custom Node is finished.
If a CustomNode class is defined and a Run method is implemented on a Custom Import node, the code within the Run method will execute independently on every process spawned as a result of the Import Method (ActionImporter) or Import Method (CaptureImporter). Utilize this pattern to save space when a custom importer must perform actions specific to the processes it creates.