data model #31
Replies: 3 comments 4 replies
-
There are no private datamodels, once datamodel is declared it is seen everywhere whithin current state machine session, the only thing you can do is to declare it later using <scxml> element binding set to 'late' https://github.com/alexzhornyak/SCXML-tutorial/blob/master/Doc/scxml.md#3-attribute-binding |
Beta Was this translation helpful? Give feedback.
-
If I have a deeply nested compound state structure with some deep inside such a hierarchy that contains a single Is ID then only seen everywhere in the overall session as long as s1 is active? If s1 is not active then no one sees ID. Is this correct? If this is correct then the only way to implement globally accessible data that is always accessible as long as the overall scxml session is active, if we place the datamodel right at the topmost scxml element. Is this correct? |
Beta Was this translation helpful? Give feedback.
-
The data binding in 5.3.3 is not entirely clear on that. It provides information at what time data elements are created and given initial values. But there is no information as to how long they are seen. |
Beta Was this translation helpful? Give feedback.
-
Is it correct that any in SCXML no matter at what state nesting level is seen everywhere in the entire document as long it occurs in the dynamic extent of an element?
Question: is d1 in the following example also seen in state s2?
dataModel1.txt
As the can be included in atomic states, compound states and I wonder whether there is any notion of private or shared . Can there be a private data model within a state that is only seen by this state and its siblings but not by anyone else?
Similarly can there be a shared data model that is only seen inside a construct but not outside?
Beta Was this translation helpful? Give feedback.
All reactions