Skip to content

Problem importing AND conditions in Choice state #66

Open
@pauljura

Description

@pauljura

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": [
	{},
	{}
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions