You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to pass input variable from parent flow to the subflow. It works fine until the value is null, when I trigger parent flow with input that has flag required = false. The Subflow task throws the following error
integerNull: Invalid input for integerNull, For input string: "", but received ``
This is not specific to subflow or INTEGER inputs, if a variable is null, our expression engine (Pebble) will return the empty string.
We may be able to do something about it for some input types but not for STRING.
Hello @loicmathieu thank you for the reaction. I understand that Pebble expression is evaluated as string and in that case type erasure is happening there. So in order to pass nullable inputs from parent flow to the subflow, we need to accept these inputs in our subflow as STRING type and work around type erasure happening there.
@rybandrei2014 it may be a work around yes.
We also may be able to do something about it but it would need careful investigation for backward compatibility
Describe the issue
Hello team,
I have a flow that triggers subflow via Subflow task
I need to pass input variable from parent flow to the subflow. It works fine until the value is null, when I trigger parent flow with input that has flag
required = false
. The Subflow task throws the following errorI tried to modify the expression
But it also throws an error
Is it possible to somehow pass an input with a null value to the subflow?
P.S.: It's also not possible to achieve with TemplatedTask as it supports only Runnable tasks
Environment
The text was updated successfully, but these errors were encountered: