Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

The method that will run when an ActionImporter is picked up by the engine.


Code Block
public abstract List<GlobalSearchDocument> Import();

Classes: ActionImporter


Returns

List<GlobalSearchDocument>

List of GlobalSearchDocument objects.


Example

The following example demonstrates importing a single GlobalSearchDocument inside an Import method.

Code Block
public override List<GlobalSearchDocument> Import()
{
	var documents = new List<GlobalSearchDocument>();
	documents.Add(new GlobalSearchDocument(1, 1));
	return documents;
}

Remarks

In GlobalAction, processes are only picked up by workflows if they aren't already inside a running process. This import method is consistent with this behavior. Any GlobalSearchDocument targeted by this method that belongs to a running GlobalAction process will not be spawned into a new GlobalAction process.