+

Search Tips   |   Advanced Search

AssemblyLine flow and Hooks

AssemblyLines provide automation of for building and deploying data flows. See the Flow Diagrams in the SDI v7.2 Reference Guide. Connectors and Functions provide additional functionality.

In these logic flows are waypoints where we can add our own scripted logic to extend built-in behavior, or to override it completely. These waypoints are called "Hooks" and are available for customizing under the Hooks tab of all Connectors and Functions, as well as of the AssemblyLine itself.

We can enable and disable Hooks according to whether a particular Hook is applicable to the AssemblyLine you are running. When you disable a Hook, you do not break its inheritance in the connector of which it is a part.

When an AssemblyLine is launched, it goes through three phases: Startup, Data flow and Shutdown. During Startup, Prolog Hooks are available for reconfiguring components before they are initialized. In the Data flow phase, each Work Entry fed into the AssemblyLine is passed down the Flow components for processing. Finally, during Shutdown, Epilog Hooks can be used to carry out end-of-job work, like checking and reporting on error status, or storing state data for the next time the AL is started.

Finally, there is a Shutdown Request Hook where we can put code that is processed if the AssemblyLine is closed down properly due to an external request to shut down (as opposed to one that crashes), enabling you to make it perform a graceful shutdown.

Special Functions are available from the system object to skip or retry the current Work entry, as well as to skip over a Connector, and so forth. See Controlling the flow of an AssemblyLine for more details.


Parent topic:

The AssemblyLine