Passing data between AssemblyLines

The RuntimeConnector6.0.xml files are here:

The Config holds two AssemblyLines; the one called "!! Start Me !!" is the one to run. But first you must configure the Connector called "FileReader" (in the "Connectors" library folder) so that it can read the .csv file.

When the "!! Start Me !!" AssemblyLine runs, it loads an instance of the "FileReader" Connector and then stores it as a Java property -- making it accessible to any task running in the same JVM. Instead of an Iterator, the AL has a Loop that cycles three times, each time (re-)initializing the Connector, calling the "TestAL" AssemblyLine and then closing the Connector again.

The "TestAL" AssemblyLine Iterates using the library Connector called "RuntimeConnector". This is a Script Connector written to retrieve and use the Connector previously stored as a Java property.

Note also how the "!! Start Me !!" AL does its cycling with a Loop instead of a Connector in the Feeds section.

-- EddieHartman - 24 May 2006
Topic revision: r2 - 25 May 2006, EddieHartman - This page was cached on 04 Aug 2023 - 13:18.

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TDI Users? Send feedback