apache / hop

Hop Orchestration Platform
https://hop.apache.org/
Apache License 2.0
983 stars 351 forks source link

[Bug]: Variable set to "valid in JVM" not valid in a repeated pipeline #3233

Closed Mattang-Dan closed 1 year ago

Mattang-Dan commented 1 year ago

Apache Hop version?

2.6

Java version?

microsoft-jdk-11.0.19-windows-x64.msi

Operating system

Windows

What happened?

A variable set in a pipeline to "valid in JVM" is not valid or has errors in a repeated child pipeline (see files attached).

Error is: couldn't convert String to number : non-numeric character found at position 1 for value [${COUNTER}]

Setup: Set a global variable (valid in JVM) in a pipeline that calls a workfow executor that calls a Repeat transform that calls a pipeline. variable_scope_JVM_to_workflow.zip

Issue Priority

Priority: 3

Issue Component

Component: Pipelines

bamaer commented 1 year ago

${VALID_IN_JVM} was never set, example fails on casting to integer in repeating pipeline. When I move Set vars before write to log and set a valid variable value, the variable can be retrieved and the repeat action works correctly.

Mattang-Dan commented 1 year ago

VALID_IN_JVM was set as a variable in the first pipeline in file: C:\dev\hop\test.Hop\pipelines/variable_scope_JVM_to_workflow.hpl

Mattang-Dan commented 1 year ago

It is working. I think the error was misleading - I actually had to configure a Run configuration for the Repeat pipeline. variable_scope_JVM_to_workflow.zip Attached is a better test case that works.