Questions tagged [apache-commons-scxml]

19 questions
11
votes
2 answers

Is there any alternative to Apache Commons SCXML?

I'm looking for a good and universal state machine and so far I've found SCXML. It's really simple to use (I mean the configuration) but the source code is archaic - there is no type safety and all collections are raw types. I don't have to say how…
user219882
  • 15,274
  • 23
  • 93
  • 138
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
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
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
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

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

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
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
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 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
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
1 answer

Commons SCXML issues

I have been considering Commons SCXML implementation. It seems quite comprehensive but I have some unclear point. In all the examples I have seen the states of the state machine are basically methods of a class that extends AbstractStateMachine…
Daniel Voina
  • 3,185
  • 1
  • 27
  • 32
1
2