Giter Site home page Giter Site logo

alexzhornyak / scxml-tutorial Goto Github PK

View Code? Open in Web Editor NEW
80.0 5.0 20.0 98.06 MB

SCXML illustrated examples and tutorials

Home Page: https://alexzhornyak.github.io/SCXML-tutorial/

License: BSD 3-Clause "New" or "Revised" License

scxml state-machine scxml-tutorial transition parallel history invoke scxml-examples simulator qt-scxml

scxml-tutorial's People

Contributors

alexzhornyak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

scxml-tutorial's Issues

Does SCXML support AND, OR, XOR etc in the boolean expressions? Is it supported in the Editor too?

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)

reset data src

It is possible to assign values to data's attribute expr.
Why is it not possible to manipulate data's attribute src?

delay attribute not working in commons-scxml2-2.0-SNAPSHOT version

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 &lt; 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>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.