Building DataFlow Applications : Building DataFlow Applications Using RushScript : Integrating with IDE : Inserting DataFlow Expressions
 
Share this page                  
Inserting DataFlow Expressions
A number of Expression Builder dialogs are provided for generating expressions (Expression Language) for use with operators such as Filter Rows, Derive Fields, and Group. The expressions you generate with these dialogs can be inserted directly into your RushScript source file.
Select the location in your source file where you would like to insert an expression. This would generally be within the arguments to dr.filterRows (the predicate argument), dr.deriveFields (the derivedFields argument), dr.group (the aggregations argument), etc.
There are three types of expressions you can build. Select the appropriate expression builder depending on the operator you are using:
Expression Builder
Type of Expression Returned
Associated Operators
/download/attachments/20480676/insertFunction-16x16.png?version=1&modificationDate=1405715105503&api=v2 Insert Function Expression
A single scalar valued function.
/download/attachments/20480676/insertFieldDerivation-16x16.png?version=1&modificationDate=1405715105472&api=v2 Insert Field Derivation Expression
One or more scalar valued functions, each assigned to an output field.
/download/attachments/20480676/insertAggregation-16x16.png?version=1&modificationDate=1405715105487&api=v2 Insert Aggregation Expression
One or more aggregations, each optionally assigned to an output field.
When you are using a supported editor, these options can be found on the toolbar, by right-clicking in the editor’s text area, or under the Edit menu. Supported editors include:
Eclipse Default Text Editor
Eclipse Java Editor
Eclipse JavaScript Editor (part of the Eclipse JavaScript Development Tools plugin)
Aptana JavaScript Editor (part of the Aptana Studio plugin for Eclipse)
You will be presented with the Using the Expression Builder dialog, with options appropriate for the type of expression you are building. After you have finished building your expression, click Insert to add it to your RushScript source file.
If you would like to edit an existing expression, you can select the entire expression within your source file, and then open the appropriate Expression Builder dialog.