alexzhornyak / scxml-tutorial Goto Github PK
View Code? Open in Web Editor NEWSCXML illustrated examples and tutorials
Home Page: https://alexzhornyak.github.io/SCXML-tutorial/
License: BSD 3-Clause "New" or "Revised" License
SCXML illustrated examples and tutorials
Home Page: https://alexzhornyak.github.io/SCXML-tutorial/
License: BSD 3-Clause "New" or "Revised" License
Hi, thanks for your tutorial.
Have you any example for including a datamodel from an XML file ?
What is the format of the XML file ?
What is the way to call the parameters from the XML file in the SCXML ?
I want to declare parameters in an XML file and use them in the SCXML.
BR,
Nicolas
Originally posted by @gaillardou31 in #6 (comment)
All examples can not be run under Qt 6 from the box
Does SCXML support AND, OR, XOR etc in the boolean expressions? Is it supported in the Editor too?
I've tried In(S1) && In(S2)
and also In(S1) and In(S2)
but it doesn't work. Using just In(S1)
or In(S2)
works.
EDIT:
5.9.1 Conditional Expressions: [...] The set of operators in conditional expressions varies depending on the data model [...]
Setting my scxml document's datamodel to ecmascript and quoting the state names worked. Sorry for bothering.
Originally posted by @heuripedes in #6 (comment)
There too many QML errors that require globally reorganise the project
Hello,
It is not an issue, I just would like to know which software you used to design the diagrams shown in this SCXML tutorial.
Thanks in advance,
Nicolas
It is possible to assign values to data's attribute expr.
Why is it not possible to manipulate data's attribute src?
Unable to evaluate the expression from the .json from src tag.It is treating like string
{
"dp1":'10 < 25',
}
Delay attribute is not working properly. Here i have configured 5s delay but its is executing only once.
<datamodel>
<!--<data id="sensordata" src="http://loaclhost:8080/retrive/sensor/data?hk200300,hk1720"-->
<data id="sensorData" src="http://localhost:8080/sensordata.json"/>
<data id="detectionparam" src="http://localhost:8080/sample.json" />
<data id="dp1"/>
<data id="dp2" />
<data id="dp3" expr="true"/>
<data id="dp4" />
</datamodel>
<state id="No_Fault">
<!-- <transition cond="true" target="Fault"/> -->
<onentry>
<assign location="dp1" expr="sensorData.HK_200300 < 25" />
<assign location="dp2" expr="true" />
<assign location="dp4" expr="true"/>
<log label="DP1 Value On Entry" expr="dp1" />
<log label="DP3 Value On Entry" expr="dp3" />
<send event="ec1"/>
</onentry>
<transition event="'ec1'" cond="dp1 or dp2 or dp3" target="Fault">
<log label="DP1" expr="dp1" />
<log label="DP2" expr="dp2" />
<log label="DP3" expr="dp3" />
</transition>
<onexit>
<log label="DP1 Value On Exit" expr="dp1" />
</onexit>
</state>
<state id="Fault" initial="Root_Cause">
<datamodel>
<data id="rc1" />
<data id="rc2"/>
<data id="rc3"/>
<data id="fm1"/>
</datamodel>
<parallel id="Root_Cause">
<state id="RC1" initial="RC1_Initial">
<state id="RC1_Initial">
<transition cond="rc1" target="rc1" />
</state>
<final id="rc1">
<onentry>
<log label="Fault RC1" expr="rc1" />
</onentry>
</final>
</state>
<state id="RC2" initial="RC2_Initial">
<state id="RC2_Initial">
<transition cond="rc2" target="rc2" />
</state>
<final id="rc2">
<onentry>
<log label="Fault RC2" expr="rc2" />
</onentry>
</final>
</state>
<state id="RC3" initial="RC3_Initial">
<state id="RC3_Initial">
<transition cond="rc3" target="rc3" />
</state>
<final id="rc3">
<onentry>
<log label="Fault RC3" expr="rc3" />
</onentry>
</final>
</state>
<transition target="Fault_Mode" />
</parallel>
<parallel id="Fault_Mode">
<state id="FM1" initial="FM1_Check">
<state id="FM1_Check">
<transition cond="fm1" target="fm1"/>
</state>
<final id="fm1">
<onentry>
<log label="Fault Mode FM1" expr="fm1" />
</onentry>
</final>
</state>
<state id="FM2">
<onentry>
<log label="FM2" />
</onentry>
</state>
</parallel>
</state>
I am trying to run the SkodaBoleroInfotainment example in q Qt 5.15.2 qml environment and am missing the bolero.h in ScxmlBoleroExt.h
Where can I find it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.