Skip to content
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

FSM saving changes on states sometimes fails #1889

Open
xgo-work opened this issue Feb 21, 2023 · 1 comment
Open

FSM saving changes on states sometimes fails #1889

xgo-work opened this issue Feb 21, 2023 · 1 comment
Assignees
Labels

Comments

@xgo-work
Copy link
Contributor

xgo-work commented Feb 21, 2023

To reproduce open UnPeuDeReact and open the view on the testDelay state machine.
Try to edit the label of the lowest state on screen. Save.
The following error should show up.

At first sight, it seems related to connecting transitions that have no assigned label.

[default] {"refId":"State:24034102:sxFP0j","version":2,"x":215,"y":424,"id":51302,"index":2,"onEnterEvent":{"content":"RequestManager.sendCustomEvent(\"popupEvent\", {\"timeout\":0,\"content\":\"<p>Hellooooo</p>\"});\nDelayedEvent.delayedFire(0, 10, \"stopCoffeeBreak\");","language":"JavaScript","parentType":"State","parentId":51302,"@class":"Script"},"transitions":[{"refId":"Transition:#0:2ktGao","id":51303,"version":1,"index":0,"nextStateId":3,"preStateImpact":null,"triggerCondition":{"content":"Event.fired(\"stopCoffeeBreak\");","language":"JavaScript","parentType":"Transition","parentId":51303,"@class":"Script"},"dependsOnStrategy":"AUTO","dependencies":[],"label":null,"stateMachineId":51295,"parentType":"State","parentId":51302,"@class":"Transition"}],"label":"sdfdffsdf","parentType":"FSMDescriptor","parentId":51295,"@class":"State"} [ { "path": [ "transitions", 0, "label" ], "property": "instance.transitions[0].label", "message": "is not of a type(s) string", "schema": { "required": true, "type": "string", "value": "", "view": { "featureLevel": "DEFAULT", "index": 0, "label": "Label" } }, "instance": null, "name": "type", "argument": [ "string" ], "stack": "instance.transitions[0].label is not of a type(s) string" } ]

@xgo-work xgo-work self-assigned this Feb 21, 2023
@xgo-work
Copy link
Contributor Author

xgo-work commented Mar 2, 2023

Current workaround
Edit the transitions that are linked to the edited state and give it a label

@xgo-work xgo-work changed the title FSM Label naming of states sometimes fails FSM saving changes on states sometimes fails Mar 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant