Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-12091

Point and click interaction for setting intermediate variable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: UI
    • Labels:
    • Sprint:
      UP6 Sprint 1, UP6 Sprint 2
    • Release Notes:
      uI: Add Define Variable and Increment Variable point and click directive
    • Rank:
      1|hzy0tu:

      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")"

        Attachments

          Activity

            People

            • Assignee:
              edwin Edwin Elia
              Reporter:
              bhooshan Bhooshan Mogal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: