Skip to content

Multiple transitions on same event in parallel not working #203

@KannebTo

Description

@KannebTo

I found a case, where only one of two parallel transitions on the same event are executed.

SCXML:

<scxml initial="parallel">
    <parallel id="parallel">
        <state id="s1" initial="s11">
            <state id="s11">
                <transition event="e" target="s12"></transition>
            </state>
            <state id="s12"></state>
        </state>
        <state id="s2">
            <state id="wrapper_state">
                <transition event="x" target="s23"></transition>
                <state id="s21">
                    <transition event="e" target="s22"></transition>
                </state>
                <state id="s22"></state>
            </state>
            <state id="s23"></state>
        </state>
    </parallel>
</scxml>

1624952219

Initial configuration:

['parallel', 's1', 's11', 's2', 'wrapper_state', 's21']

Configuration after event e:

['parallel', 's1', 's12', 's2', 'wrapper_state', 's21']

s11 transitions to s12 but sadly s21 stays.
I need to trigger event e a second time to make the transition to s22.

But when I delete the transition on event x in the SCXML, it is working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions