(runtime provided) Connector
Overview
A runtime provided Connector is a raw Connector that is provided at runtime. When an AssemblyLine is started (through
startAL) by an EventHandler or from a script, you can supply one (and only one) Connector to the AssemblyLine as a
parameter. The Connector will be
used for those AssemblyLine Connectors configured as type (runtime provided). You can
use the supplied Connector several times in the AssemblyLine.
Example of how to use a runtime provided Connector from an EventHandler
var conn = system.getConnector ("metamerge.FileSystem");
conn.setParam ("filePath", "mypath.txt");
conn.initialize ( null );
// Here we start he AssemblyLine itself
var al = main.startAL ( "assemblyline1", conn );
Example also including an initial working entry
var conn = system.getConnector ("metamerge.FileSystem");
conn.setParam ("filePath", "mypath.txt");
conn.initialize ( null );
var entry = system.newEntry();
entry.setAttribute ("cn", "My Name");
entry.setAttribute ("mail", "my.name@dot.com");
var al = main.startAL ( "assemblyline2", conn, entry );
Configuration
The Connector may need parameters, but their names and values will naturally
depend on the:actual Connector.
Downloads
Included in base product
See Also
The Assembly Line
|