Skip to content
This repository was archived by the owner on May 27, 2021. It is now read-only.
This repository was archived by the owner on May 27, 2021. It is now read-only.

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

Description

@m4dcoder

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions