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

Visual state chart editor

Is there a tool similar to Eclipse Based Visual SCXML Editor for constructing Harel State Tables? Currently the status in the project page is code unreleased. how do i install the plugin?
iceman
  • 4,211
  • 13
  • 65
  • 92
5
votes
2 answers

How to test Qt SCXML state machines

I'm trying to verify the behavior of a state machine using Qt test framework. I simply don't get how I am supposed to tests Qt SCXML implementation. Sure there is QSignalSpy, but that is only for signals/slops which do not require the event loop to…
Nils
  • 13,319
  • 19
  • 86
  • 108
5
votes
1 answer

Create a timeout in an SCXML state machine

In an SCXML state machine, how can I say "Fire an event 3 minutes after I enter this state, but not if I sit in the state for 2.9 minutes and then leave. If I re-enter the state, restart the timer (don't go off in 0.1 minutes)"
Phrogz
  • 296,393
  • 112
  • 651
  • 745
4
votes
4 answers

Dynamic target in a state machine

In a state machine made with SCXML, is there any way to set a dynamic target value for a transition? I mean, suppose I have an object called "obj" which has been set as the datamodel for a scxml. So there can be set conditions (if there were a…
Javi
  • 19,387
  • 30
  • 102
  • 135
4
votes
1 answer

What is the difference between SCXML statecharts and UML statecharts?

I know that the user defines them in different ways (XML compared to UML Tool), but what is the difference in semantics between the two? Or does a statechart in SCXML mean the same thing as a comparable statechart in UML?
theDmi
  • 17,546
  • 6
  • 71
  • 138
4
votes
1 answer

Creating a custom data model for Qt SCXML

I'm using Qt with an SCXML state machine. I want to use the native Qt SCXML interpreter via QScxmlStateMachine. However, Qt only supports Null, EcmaScript, and C++ data models for SCXML. My state machine has a custom data model. I would like to…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
4
votes
3 answers

Commons SCXML - Force jump to a given state

I am using Apache Commons SCXML, and I would like to know if it is possible to tell the state machine (SCXMLExecutor) to jump to a given state. I can not use the initialstate attribute, because I want the state machine to recover (i.e. from power…
Guido
  • 46,642
  • 28
  • 120
  • 174
4
votes
1 answer

How do I verify that my SCXML defines a valid state machine?

I've just started looking at defining state machines and SCXML looks attractive, especially the Apache Commons SCXML for Java. Obviously I can validate the XML (with an appropriate XSD). However I can't obviously find any way to verify that the…
KevinM
  • 567
  • 4
  • 21
3
votes
3 answers

Apache Commons SCXML - cannot find JexlContext

I'm new to SCXML and I cannot start even the simplest application. When I try to start it I get the following exception. But I have the library commons-scxml-0.9.jar with that class on classpath. Any ideas? Exception in thread "main"…
user219882
  • 15,274
  • 23
  • 93
  • 138
3
votes
1 answer

Problem raising event in scxml

I'm having a problem with the following scxml code: ... ...
Javi
  • 19,387
  • 30
  • 102
  • 135
3
votes
1 answer

Qt 5.8 How to use the SCXML framework with sub state machines?

I am trying to build a system, which is orchestrated by a main state machine and has different sub state machines for the tasks it is executing. Being a long-time Qt user I looked at the new SCXML implementation in Qt 5.8. However I cannot figure…
Nils
  • 13,319
  • 19
  • 86
  • 108
3
votes
2 answers

Compile Finite State Machine to UML(-like) Diagram

Every Python developer knows tools like Sphinx. You write some text in a markup language, write make in the shell and let some compilers do their job. In the end you get beautiful HTML or PDF. I am looking for something like that, just for Finite…
erikbstack
  • 12,878
  • 21
  • 81
  • 115
3
votes
1 answer

Standard file format for describing hierarchical (nested) finite state machines?

I have a need to describe a hierarchical finite state machine in a standard and portable format. Is there a widely-accepted and supported file format that I should use? I see that the Graphviz DOT language supports sub-graphs that may be referenced…
Phrogz
  • 296,393
  • 112
  • 651
  • 745
2
votes
1 answer

SCXML notation of a target set

How can I define a "legal state configuration" according to https://www.w3.org/TR/scxml/#LegalStateConfigurations. I want to specify a target set (!), not a single target. Target sets can be defined inside the initial attribute of the and…
Ruebe
  • 41
  • 4
2
votes
0 answers

evaluated location in assign scxml tag

how to dynamically specify location in assign scxml tag? My scxml interpreter does not accept something like this. Parametr expr="_event.data.expr" is evaluated properly. But location parametr accept only exact name string.
ibnz
  • 81
  • 5
1
2 3 4 5