Mistral workflow fully qualified action name error
st2 --version st2 3.0.0, on Python 2.7.6
Created and saved a new mistral workflow with name test_mistral_wf. Execution failed on error message Name of the workflow must be the same as the fully qualified action name "examples.test_mistral_wf"
/opt/stackstorm/packs/examples/actions/test_mistral_wf.meta.yaml
pack: examples
enabled: true
runner_type: mistral-v2
name: test_mistral_wf
entry_point: workflows/test_mistral_wf.yaml
/opt/stackstorm/packs/examples/actions/workflows/test_mistral_wf.yaml
version: '2.0'
main:
tasks:
# [246, 304]
task1:
action: core.echo
input:
message: hello
Thanks for finding and reporting this.
I confirmed - issue is related to _ in the action (and as such workflow name, if one is not explicitly specified in the workflow definition). - works fine.
This is not a blocker for v3.0.0, but in the future we should fix it to at least throw a more user-friendly exception in such scenario.
In the WF definition, main should be <pack>.<name> from action meta. This is limitation of mistral WF definition and due to way that it stores individual workflows and workbooks in DB. Orquesta does not have this limitation.