Skip to content

Problem importing AND conditions in Choice state #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pauljura opened this issue Jun 2, 2022 · 0 comments
Open

Problem importing AND conditions in Choice state #66

pauljura opened this issue Jun 2, 2022 · 0 comments

Comments

@pauljura
Copy link

pauljura commented Jun 2, 2022

Hi, I'm importing an existing state machine that has a Choice state with a condition like this:

{
    "Type": "Choice",
    "Choices": [{
            "And": [{
                    "Variable": "$.url",
                    "IsPresent": true
                }, {
                    "Variable": "$.url",
                    "IsString": true
                }
            ],
            "Comment": "Check if $.url exists and is string",
            "Next": "Pass"
        }
    ],
    "Default": "Set default URL"
}

After importing, the choice condition becomes:
(undefined) && (undefined)

The condition in the exported JSON turns into this:

"And": [
	{},
	{}
],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant