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

Generate all transition of finite state machine from SCXML file

I've state machine implemented with SCXML and i need to know how can i get all transitions from start to end in order to make test cases for the state machine
1
vote
1 answer

Events handling in QtScxml state machine

I'm trying to use the QScxmlStateMachine object, but unfortunately, I don't manage to trigger an event when the cond attribute of my transition is filled, whatever the value. machine.scxml:
JoeHigashi
  • 67
  • 1
  • 5
1
vote
1 answer

weird behaviour of QScxmlStateMachine.connectToEvent in PySide2

I am trying to write a desktop application using Python on backend, QML on frontend and scxml for creating state machine. I am using PySide2. My intention is to describe logic of the application by state machine. Based on the state, UI in QML should…
Artem
  • 107
  • 1
  • 6
1
vote
0 answers

invoking custom function in transition cond evaluation in scxml

I want to invoke custom function defined in script tag while evaluating the cond in transition block. For instance I want to defined functions as:
phantomastray
  • 449
  • 3
  • 16
1
vote
1 answer

Import SCXML into Visio

Is it possible to import SCXML file into Visio as a "UML Statechart" or other diagram? If so then how? Are there some options with newer version(s) than Visio 2010?
rudolf_franek
  • 1,795
  • 3
  • 28
  • 41
1
vote
2 answers

Enterpise Architect - is it possibhle to import SCXML file? How?

Is it possible to import SCXML file into Enterpise Architect as a "State Machine" or other diagram? If so then how?
rudolf_franek
  • 1,795
  • 3
  • 28
  • 41
1
vote
0 answers

Commons SCXML2 Unable to jump to provided State

I am using commons SCXML2 having States and tasks to control the Workflow Engine and initially the engine starts with a initial State and execute State and task in a flow. And our requirement is that we want to persist the State if the Workflow get…
1
vote
1 answer

Are conditional targets in blocks supported in SCXML?

I want to implement this sort of a conditional transition in SCXML: current_state = s01 if (Math.random() < 50) go to state s02 else go to state s03 Is this sort of conditional targets supported in SCXML ? To put it into the SCXML…
1
vote
1 answer

Apache SCXML: add a custom action

I'm working with Apache Commons SCXML 0.9 and I can't find how to add a CustomAction. I've found examples using v2.0-SNAPSHOT (which by the way I don't know where to get it), but it seems that doesn't work on v0.9, so far I got something like…
maxivis
  • 1,727
  • 3
  • 21
  • 35
1
vote
1 answer

How to write grammar rules in a element in an scxml file?

I have some trouble figuring out how to write grammar rules inline directly in scxml files instead of linking to them in an external grxml files. Let me illustrate it on an example: combat.scxml ------------
petmir
  • 11
  • 5
1
vote
2 answers

Selecting DOM elements but not their children in D3

I'm working with SCXML, and my data is something like this:
Malcolm Crum
  • 4,345
  • 4
  • 30
  • 49
1
vote
1 answer

how to read datamodel values from Apache-commons scxml api in java

I am using SCXML in my java application. I am using apache-commons-scxml api to implement the state machine. I am able to set the value in data model through sxml api but not able to read that value in java code. Each time read operation fetch the…
Infotechie
  • 1,653
  • 6
  • 23
  • 35
1
vote
2 answers

What sort of automaton does SCXML describe?

Are the limitations of SCXML the same as a deterministic finite automaton/deterministic finite state machine, or is the power of SCXML better captured by other abstract machines/automata? For instance, could SCXML be consider powerful enough to…
1
vote
2 answers

Is there any clear difference between event and state

This question is a bit philosophical and is like "data and code are the same thing or not". Is there any clear difference between event (signal) and state? Example: For example, there is a car passing by the road. When the car horns, a man…
ceremcem
  • 3,900
  • 4
  • 28
  • 66
1
vote
0 answers

Integrating SCXML in ROS node using PYSCXML

In the last weeks a faced a problem that still I could not find a solution: I execute a ROS node that starts a StateMachine object from pyscxml. The first time that this node receives a message from another node, an event is send to the StateMachine…