StackStorm / st2flow

DEPRECATED & OBSOLETE! Previously StackStorm Enterprise (EWC) Workflow Editor. Now integrated directly into StackStorm OSS Core platform (st2web).
https://github.com/StackStorm/st2web/
Apache License 2.0
16 stars 6 forks source link

Fail to load workflow if definition contains schema/model validation error #368

Open m4dcoder opened 4 years ago

m4dcoder commented 4 years ago

If the workflow definition contains schema error such as having a duplicate key in the action input of a task, then st2flow will fail to load the entire workflow.

The developer console will return the following error.

Uncaught (in promise) TypeError: Cannot read property 'toObject' of undefined
    at OrquestaModel.validate (main.js:1)
    at workflowModelGetter (main.js:1)
    at flowReducer (main.js:1)
    at reducer (main.js:1)
    at rootReducer (main.js:1)
    at dispatch (main.js:1)
    at main.js:1

More detail root/cause is returned if user open a new canvas and then cut and paste the workflow definition into the text editor.