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
An Orquesta workflow doesn't seem to allow the use of ctx().get(varname,default_val) for attempting to retrieve variables that may not exist from the runtime context. @nzlosh asked me to open this bug (on the Slack #community channel
SUMMARY
An Orquesta workflow doesn't seem to allow the use of ctx().get(varname,default_val) for attempting to retrieve variables that may not exist from the runtime context.
@nzlosh asked me to open this bug (on the Slack #community channel
STACKSTORM VERSION
st2 3.1.0, on Python 2.7.5
Single box
OS, environment, install method
RHEL 7.6 scripted install
Steps to reproduce the problem
Create and run a workflow using this gist:
https://gist.github.com/markcrobinson/50aeda08afc9b6222983344df9ec7f8c
Expected Results
message1 and message2 contain the contents of the variables published in the tasks
message3 contains the default value ("See ya")
Actual Results
Running the workflow throws a YAQL error for each of the three output statements:
isDict(ctx()) returns true
Assigning ctx() into a variable forces it to be a dictionary. @nzlosh game me this workaround:
The text was updated successfully, but these errors were encountered: