statelyai / studio-issues

Report issues found in Stately Studio
5 stars 0 forks source link

Bug: guarded always transitions cannot be used in simulation if several exists in parallel states #119

Open jbouecke opened 2 years ago

jbouecke commented 2 years ago

Description

If in two parallel sub states a 'always' transition exists and you start a simulation, you can choose the the desired target just for one of both transitions.

Example:

https://stately.ai/registry/editor/share/40e55556-599b-4e64-8801-cd76c2f631c6

Expected result

The user should need to determine all guard results that are required to perform the transitions.

Actual result

All other transitions that the first one which is selected are taken 'randomly'...

Which browsers are you seeing the problem on?

No response

Additional details

No response

Andarist commented 2 years ago

Huh, I wondered how long it will take for this to be noticed 😅 I agree with you, this should be a requirement here, and the support for simulating parallel states could be improved in some other, similar, places.

gsong commented 1 year ago

Just noticed this today in https://stately.ai/registry/editor/1705ad5a-5033-4eb3-9283-1b9a340021d0?machineId=571b2cae-1c44-4280-8531-57f39b790422&mode=Simulate, if you transition one parallel state to ELSE, all of them transition to ELSE.