Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-16049

getVariable does not return variable set by setVariable in same Javascript step

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Severity: Urgent
    • Resolution: Fixed
    • Affects Version/s: 6.1.0.10 GA, 7.0.0.2 GA
    • Fix Version/s: 7.1.0 GA
    • Component/s: Step
    • Labels:
    • Story Points:
      0
    • PDI Sub-component:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.
    • Sprint Team:
      Tatooine (Maint)
    • Operating System/s:
      Windows 10

      Description

      In versions of Kettle that include the changes for PDI-14852, variables set in a Modified Javascript Value step can no longer be retrieved further down in the same step using getVariable.

      This can be reproduced using a transformation with a Javascript step containing the sample code for the getVariable function. In older versions of Kettle (tested with 4.4.2), running the transformation results in a blank Alert, an Alert with the message 123456, and an Alert with the message 654321. In versions of Kettle containing the changes for PDI-14852 (tested with 6.1.0.10), running the same transformation results in all three Alerts being blank.

        Attachments

          Activity

            People

            Assignee:
            upihin Uladzimir Pihin (Inactive)
            Reporter:
            csonger Christopher Songer
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: