|
|
The AssemblyLine Connector objectThe AssemblyLine Connector object is a wrapper that provides additional functionality to the Raw Connector (The Raw Connector can be accessed from the AssemblyLine (AL) Connector as the .connector object.). The AL Connector is the one calling the hook functions you define in the AssemblyLine and also the one that performs the attribute mapping. Each AL Connector in the AssemblyLine is given a name that is automatically available in your scripts as that name. If you name a AL Connector "ldap" it will also be used as the script object name. Make sure you name your Connectors in a way that is compatible with the selected scripting language. Typically, you should avoid using white-space and special characters. The AssemblyLine Connector has methods and properties described in the rscTaskComponent (part of the javadocs).
The trigger function calls one of the AssemblyLine hooks defined for this Connector using the provided conn/work. The return value is either true if the hook was executed or false if the hook is not defined or disabled. Example: Suppose you have an iterating input Connector called MyConnector and wanted to log the total number of reads performed. You could script task.logmsg("Number of records read: " + MyConnector.getStats().numGet());
|
|
|