Building DataFlow Applications : Building DataFlow Applications Using RushScript : Overview of Scripting
 
Share this page                  
Overview of Scripting
RushScript Life Cycle
RushScript sources are created with the ".js" extension indicating they are a JavaScript-based file. Within the source code, a RushScript invokes methods to compose the DataFlow applications using JavaScript extensions added by DataFlow. These extensions will be covered in detail in later sections. When the composition of an application is complete, the application can optionally be executed by the RushScript code. After execution is complete, results from the execution can be optionally accessed.
The general lifecycle is:
1. Create a RushScript source file using the .js extension.
2. Add calls to the source code to compose DataFlow applications.
3. Optionally add calls within the source code to directly execute the composed applications. If the application is not explicitly run, it will be run when the RushScript is executed.
4. Execute the RushScript using either the dr command or using the launch capabilities of the Eclipse IDE.