Questions tagged [scxml]

SCXML is an XML-based language that provides syntax and a precise algorithm for describing and running generic state machines inspired by David Harel's State Chart semantics. SCXML is a W3C draft recommendation, State Chart XML: State Machine Notation for Control Abstraction.

When should I use this tag?

Tag any question about SCXML (but not other State Chart implementations such as UML state diagrams). When relevant, tag the question with the appropriate tag for the data model used in your code.

About SCXML

The SCXML draft recommendation is maintained by the W3C Voice Browser Working Group, but does not have any voice-specific features. Instead, it aims to be an extensible, general-purpose language for modelling and running application control, user interaction and I/O, based on events and transitions between complex states.

In addition to changing state, SCXML can manipulate a data model. The current draft specifies the ECMAScript and XPath data models (implementations do not have to implement either). SCXML can be extended with any data model that satisfies the core requirements.

62 questions
1
vote
1 answer

Stopwatch constructor needs URL scxmlDocument

I have a problem. I wanted to add a stopwatch display to my app. I used this page as a reference. I downloaded and added necessary commons-scxml-0.9.jar libraries (with source code). There are no errors in Eclipse but when I debug it, in this class…
m4gnum
  • 11
  • 3
0
votes
1 answer

how to define a subroutine in scxml

I'm trying to figure out how a subroutine can be coded in SCXML. As soubroutine I mean a process/routine/function that can be called from different processes (states) and returns to the caller. At first I tried with history states but on return the…
B3nTek
  • 7
  • 6
0
votes
1 answer

state chart xml processor in JavaScript for browser applications

i need a State Chart XML processor in Javascript, to run single players applications on the browser. Does someone know, if it exists?
0
votes
1 answer

How to use QScxmlCppDataModel in QScxmlStateMachine?

In my project , i use C++ , QScxmlCppDataModel , there is always occur a error , "No data-model instantiated" when i start the state machine, I follow the Qt document says 1、Add data model in scxml file
zyl
  • 26
  • 3
0
votes
1 answer

How we can just call the child element f scxml not (child of child)?

I am making a parser for state chart XML using C#. As we know there may be 2 children of state chart XML state and parallel so I make 2 functions one for state and other for parallel. How just I can call children of scxml not child of its child in…
viman ch das
  • 1
  • 1
  • 1
0
votes
1 answer

Looped invoke in scxml event

I have an scxml event with an "invoke" element. This invoke element updates the datamodel elements when the event is called. How can I make this happen periodically? Is it possible to periodically call this invoke for example, every second? Or…
user98651
  • 304
  • 1
  • 2
  • 13
0
votes
0 answers

How to register C++ function to scxml ecmascript data model?

This question is deprecated I have since converted my state machines to use an extra state to call the C++ function on enter and I trigger sendEvent when the function returns a value. Old question is as follows: I have a simple SCXML model…
nurettin
  • 11,090
  • 5
  • 65
  • 85
0
votes
1 answer

Mutual access to the methods of two objects

Hi I am doing application in Java to control some mechanical device with RS232 port. The code is working ;) but its very big and messy so I am trying to make it closer to design paterns and easier to implement new things so I started to…
Pierwiastek
  • 134
  • 9
0
votes
2 answers

Using C++ data model with Qt SCXML state machine

I have a working state machine that sends similar messages from several states. At present they are all hard coded, so I have fragments in my .scxml file like:
nurdglaw
  • 2,107
  • 19
  • 37
0
votes
1 answer

How scxml transition target works

I am trying to understand scxml transition target state set. Here is some of my example code:
ligtu
  • 1
0
votes
1 answer

Catching Data from uSCXML?

I have setup a little C# console app and can run the interpreter on scxml files and it appears to run just fine. Unfortunately there is very little in terms of examples for using uSCXML. I embedded the interpreter in my app for runtime use, so all…
0
votes
1 answer

QScxml ECMAScript Data Model

I am having a look at QScxml ECMAScript Data Model and as I have never used any scripting functionality of Qt I am a bit lost. I have seen that Qt has different Script engines (QtScript, QJSScript, QQMLEngine) which are all compatible to ECMAScript…
Stefano
  • 3,981
  • 8
  • 36
  • 66
0
votes
1 answer

Setting Orientaiton Ionic/ scxml

I am trying to lock my ionic screen to not flip completely. Currently I am setting it in my scxml file. I am able to set it to portrait only however with portrait it still flips when if you turn the device upside down. most of the answers I've…
Flash
  • 924
  • 3
  • 22
  • 44
0
votes
1 answer

Aggregating local events in SCXML

My state machine has a self loop every time some request event is created. I want to store these events in a local context list against a key and everytime this self loop is executed an element is appended to the list. Then this list after a certain…
joanOfArc
  • 467
  • 1
  • 6
  • 16
0
votes
1 answer

State transition from state in scxml

I am trying to implement a control flow using Apache scxml. My state transitions are like
Agarwal
  • 5
  • 3