When to use the tRunJob component
The tRunJob component helps mastering complex Job systems in real project. The tRunJob is usually used to achieve the following needs:
- This component can be used as a standalone Job and helps clarifying a complex Job by
avoiding having too many sub-jobs in one Job. You can create different Jobs for processing
different business requirements, and then create a main Job to run the child Jobs called
with the tRunJob component.
For example, assuming you are building a data warehouse for retail, you populate the fact tables such as users, product, orders and dimension tables in different Jobs, and create a main Job to run the child Jobs one by one.
- The tRunJob component is the only solution to read data from a data source, then process the data in a component. However, there might exist problematic data that lead to the Job execution failure. The Job throws a Java exception and stops to run. You need to capture the Java exception with a tLogCatcher component, log it to your database or file, and make the Job continue to perform the next data.