Point and click interaction for setting intermediate variable

Description

As a data scientist, I want to be able to initialize and increment transient variables while processing a record using data preparation, so that I can perform iterative calculations while processing a record.

Acceptance Criteria:
1. The lifetime of the transient variable should be a single record. When processing for a new record begins, the transient variable should not be available, until it is initialized again.
2. The transient variable should have separate conditions for initialization and increment.

Specs:
1. Add a new menu item: Add Transient Variable.
2. Submenu should have 2 sections:
2a. Initialization: Accepts an initial value for a variable, and a JEXL expression, the result of which is assigned to the variable as an initial value.
Label: "Variable Name"
Widget: Textbox
Placeholder: "E.g. count, index"
Label: "Initial value"
Widget: Textbox
Placeholder: "E.g. math:round(temperature), 25, 44.90"
2b. Update: Accepts an increment value (defaults to 1) and a condition upon which the value is updated.
Label: "Increment By"
Widget: Number (defaults to 1)
Label: "Increment Condition"
Widget: Textbox
Placeholder: "E.g. age > 25, first_name.startsWith("s")"

Release Notes

uI: Add Define Variable and Increment Variable point and click directive

Attachments

3

Activity

Show:

Lea Cuniberti-Duran July 19, 2017 at 7:40 PM

This is the text for Summary:
Summary: You defined a variable for the cell in row x, in the column “body”

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Labels

Affects versions

Components

Sprint

Fix versions

Priority

Created July 11, 2017 at 5:42 PM
Updated August 25, 2017 at 3:38 AM
Resolved August 5, 2017 at 12:31 AM