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
2
votes
0 answers

Splitting SCXML over multiple xml files

I am creating different SCXML files which are then used by a Qt application. In order to better structure my state machine, I would like to separate the common part of one machine from the custom state of every other machine. So I thought to split…
Stefano
  • 3,981
  • 8
  • 36
  • 66
2
votes
0 answers

How to use Qtest to test a QT statemachine workflow

I'm trying to implement a QT state machine based workflow, and for testing purpose, I'm tring to play my workflow using QTest. void initTestCase() { machine = loadScxmlFile("StateMachine.scxml"); machine->start(); auto wrapper =…
Deswing
  • 21
  • 5
2
votes
3 answers

Qt statemachine scxml in cmake project without pro file?

I have a large cmake controlled project in which I want a part to use the scxml state machine from qt. My question is the following: How can i add the scxml module without having a pro file which i understand does not work with cmake? Something…
2
votes
0 answers

Qt state charts: How to invoke a compiled state machine?

Having read the SCXML invoke example I ask myself how this should work if you want to invoke a state machine that was compiled to C++ code using qscxmlc. I noticed that it is possible to invoke another state machine by using the src attribute in the…
Nils
  • 13,319
  • 19
  • 86
  • 108
2
votes
2 answers

Is there a simple .NET code generator for a Event-driven finite state machine?

Is there a simple .NET code generator for a Event-driven finite state machine? I am tired of doing this by hand for user-interface objects. I just need the enum definition, the switch statement, and each function call. I do not need a "library". See…
AMissico
  • 21,470
  • 7
  • 78
  • 106
2
votes
3 answers

finite state machine compiler for C to simulate network protocols

I was looking for a good state machine compiler so as to test some custom networking protocols. I looked at a few tools already such as Yakindu, Ragel(compiler), SCXML(language) but I was not sure if any of them could be used for networking…
Shravan B
  • 37
  • 4
2
votes
0 answers

SCXML, I can't use fireEvent inside of a event

I am using Apache Commons SCXML to create a FSM. Using the example StopWatch from Apache, I have created a FSM. SCXML:
jabrena
  • 1,166
  • 3
  • 11
  • 25
2
votes
1 answer

Synchronous PySCXML

I'm currently looking into idioms and libraries for Python helping me with state machine design for a control task. I've found good suggestions in this other SO question: Python state-machine design. Among the answers, PySCXML was suggested which…
fabb
  • 11,660
  • 13
  • 67
  • 111
2
votes
2 answers

SCXML parsing IOS

Do anyone have any idea about writing SCXML parsers in IOS ? I went through this http://www.w3.org/TR/scxml/ and have idea about SCXML. I need to create parsing architecture now. Kindly let me know if anyone has idea. Thanks in advance.
user358170
  • 61
  • 6
2
votes
2 answers

Automatic scxml code synthesis for statechart models

Can the w3c scxml specs be considered under model driven development? i.e statecharts as models for scxml which can be autogenerated using a tool instead of hand coding them. I'm looking for such a tool for tablet GUI interactions. David Harel's…
iceman
  • 4,211
  • 13
  • 65
  • 92
2
votes
1 answer

Visual programming tool for modeling statecharts representing multi-modal user interfaces

Is there any visual programming tool for modeling statecharts representing multi-modal user interfaces? I want to build an android and windows metro app which receives input from touch and voice. The application guides the user through a…
iceman
  • 4,211
  • 13
  • 65
  • 92
1
vote
1 answer

Visual statechart editor for non-programmers, with limited conditions, events and actions

I'm looking for some visual statechart-editor, for my customer. I'm building for him server application, and he needs tool to build statecarts and upload them to the servers. Ofcourse, the tool needs to have the capability to export to some readable…
Yaakov Shoham
  • 10,182
  • 7
  • 37
  • 45
1
vote
0 answers

PySide6 registering to QScxmlStateMachine event failure

PySide on Python 3.10.5 PySide6.__version_info__ = (6, 3, 0, '', '') Using QScxmlStateMachine connectToEvent(), method I always get the message: qt.core.qobject.connect: QObject::connect: No such slot ... The error happens when the slot has an…
st1959
  • 11
  • 1
1
vote
1 answer

How to use conditional transitions in Qt SCXML statecharts

I'm currently trying to understand Qts scxml state charts, and how to properly integrate them in my applications. One problem I stumbled uppon are conditional transitions. To explain how I use conditions here and what goes wrong, I made a minimum…
RobinW
  • 292
  • 4
  • 16
1
vote
0 answers

How to raise/send an event from within the