You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Doc/VisualStateChartSplitting.md
+65Lines changed: 65 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,5 +62,70 @@ After run all entered states will be highlighted
62
62
You may double click on virtual shape to switch to the its source unit
63
63

64
64
65
+
## Virtual Invoke
66
+
Since ScxmlEditor 2.5 there is an option to include state chart parts multiple times
67
+
68
+
**Inspired by discussion how could we avoid [invoke](https://alexzhornyak.github.io/SCXML-tutorial/Doc/invoke.html) element in systems that do not support it:**
The principle is based on the fact that we find repeated prefixes in the state identifiers or other scxml attributes such as data identifiers or values. According to scxml standard we can not use states with the same names in one scxml chart, so we will use Alias which is filled with value assigned in parent Virtual State.
77
+
78
+
1. Convert **`State_1`** to Virtual State
79
+
80
+

81
+
82
+
2. Replace state identifiers with Alias variable **`%1`**
83
+
84
+

85
+
86
+
3. Set Virtual State Alias
87
+
88
+

89
+
90
+
4. Set Aliases to other virtual states
91
+
92
+

93
+
94
+
### Result
95
+
ScxmlEditor will perform substition of Alias variable **`%1`** to Alias value which is set in Virtual State. So in target scxml file you will get different state identifiers
0 commit comments