Re: [SCXML] use the send action.

2010-05-04 Thread jocke eriksson
namelist would be one option, this is how it works now I create new dispatcher for every state machine and that dispatcher has a SCXMLExector field and a Context field so the context is available for every dispatcher. And when the dispatcher is called, the derived events are retrieved from the con

Re: [SCXML] use the send action.

2010-05-04 Thread Rahul Akolkar
On Tue, May 4, 2010 at 2:23 AM, jocke eriksson wrote: > Ok here is the scenario, send html request to a server, fire event found in > a http response header. What is the recommended way of solving that using > the send tag in scxml. This ugly solution is what i have now. > > > public final class S

Re: [SCXML] use the send action.

2010-05-03 Thread jocke eriksson
Ok here is the scenario, send html request to a server, fire event found in a http response header. What is the recommended way of solving that using the send tag in scxml. This ugly solution is what i have now. public final class SendAction extends Send { private static final long serialVer

Re: [SCXML] use the send action.

2010-05-03 Thread Rahul Akolkar
On Mon, May 3, 2010 at 9:12 AM, jocke eriksson wrote: > I have an application that uses many custom actions, but now I'm trying to > use the dispatchers Send method. > My problem is that when I use the executor to trigger events, the machine > ends up in an loop. > How could one get a reference to

Re: [scxml] How to update the datamodel from inside a state's executable content?

2010-04-29 Thread RT
Moving the datamodel to the root worked. Thanks! -- View this message in context: http://apache-commons.680414.n4.nabble.com/scxml-How-to-update-the-datamodel-from-inside-a-state-s-executable-content-tp2065389p2075605.html Sent from the Commons - User mailing list archive at Nabble.com. ---

Re: [scxml] How to update the datamodel from inside a state's executable content?

2010-04-26 Thread Rahul Akolkar
On Mon, Apr 26, 2010 at 3:03 PM, Aarathi wrote: >  In the listener: > > public void onEntry(TransitionTarget state) { >   >           // call method named as the state thru reflection >           invokeState(state.getId(), state.getDatamodel() > > } > > stateP(Datamodel model){ > > //  some ne

Re: [scxml] How to update the datamodel from inside a state's executable content?

2010-04-26 Thread Aarathi
In the listener: public void onEntry(TransitionTarget state) { // call method named as the state thru reflection invokeState(state.getId(), state.getDatamodel() } stateP(Datamodel model){ // some new value for "data1" is generated, so update it on the datamodel Str

Re: SCXML: How to update the datamodel from inside a state's executable content?

2010-04-26 Thread Rahul Akolkar
On Mon, Apr 26, 2010 at 11:54 AM, Aarathi wrote: > *Details on how I use the commons scxml api:* > My state's scxml looks like this - > > >       >               >       > > > > > I use the commons scxml with the "listener" pattern. So when  the > "onEntry()" is called in the SCXMLWorkflowList

Re: [scxml] How to update the datamodel from inside a state's executable content?

2010-04-26 Thread Rahul Akolkar
On Mon, Apr 26, 2010 at 12:09 PM, Aarathi wrote: > *Details on how I use the commons scxml api:* > My state's scxml looks like this - > > >       >               >       > > > > > I use the commons scxml with the "listener" pattern. So when  the > "onEntry()" is called in the SCXMLWorkflowList

Re: [SCXML] Parallel parent states resetting to initial substates?

2010-04-13 Thread Rahul Akolkar
On Fri, Jan 8, 2010 at 6:37 PM, Bill Herring wrote: > OK, I found that it is indeed a feature (Section 3.3.3 of the SCXML spec), Yup, followed transition's parent state will always be exited (and if its the base of an orthogonal region, that means all other orthogonal region siblings will have t

Re: [SCXML] Parallel parent states resetting to initial substates?

2010-04-13 Thread Bill Herring
OK, I found that it is indeed a feature (Section 3.3.3 of the SCXML spec), but I still need the behavior I describe in my original email. In an attempt to fix the problem, I added history states to the two parallel parent states, like this:

Re: [SCXML] equivalent to Rhapsody Join pseudostate

2010-03-13 Thread Rahul Akolkar
On Wed, Mar 10, 2010 at 12:45 AM, Jacob Beard wrote: > Hi, > > I'm currently working on a small compilers project based on SCXML, and > I'm trying to understand some of the ways it differs from the Rhapsody > syntax and semantics. > > To start out, it's fairly clear to me how to express the equiva

Re: [SCXML] Action class (was: Hi)

2010-02-16 Thread Rahul Akolkar
Please use better email subjects. Also, since this is a shared mailing list, please prefix the subject with the Commons component name. I have modified the subject here. On Tue, Feb 16, 2010 at 10:08 AM, Test Test wrote: > I am new in SCXML, and I want to use > org.apache.commons.scxml.model.Acti

Re: [SCXML] Modifying classloader for SCXML digester?

2010-01-28 Thread Rahul Akolkar
On Thu, Jan 28, 2010 at 1:16 PM, Bill Herring wrote: > I'm developing an Eclipse plugin application and have Commons SCXML and > Digester in a plugin/bundle separate from my main project bundle.  The > problem with this is that if I'm submitting a list of custom actions to > SCXMLParser.parse() th

Re: [SCXML] Modifying a statechart during runtime

2010-01-26 Thread Rahul Akolkar
On Tue, Jan 26, 2010 at 8:01 AM, Hallvard Trætteberg wrote: > Hi, > > I been using SCXML for a long time (among others, I've implemented support > for Javascript), and I am in general pretty satisfied. In my latest project, > I will be generating a statechart from states that will be composed into

Re: [SCXML] History in parallel?

2010-01-14 Thread Rahul Akolkar
On Wed, Jan 13, 2010 at 6:24 PM, Bill Herring wrote: > I didn't think of that, and it's more elegant than the workaround I used, > which was to put history tags in the talk_status, call_status, etc. inside > the parallel state and target those histories instead of a single one. >  Thanks for the t

Re: [SCXML] History in parallel?

2010-01-13 Thread Bill Herring
I didn't think of that, and it's more elegant than the workaround I used, which was to put history tags in the talk_status, call_status, etc. inside the parallel state and target those histories instead of a single one. Thanks for the tip! I'll make sure I prefix future subject lines with

Re: [SCXML] History in parallel?

2010-01-13 Thread Rahul Akolkar
Please prefix the email subject with the Commons component name when posting, as I've done here (since this is a shared mailing list). Response below ... On Thu, Jan 7, 2010 at 5:51 PM, Bill Herring wrote: > My reading of the latest W3C working draft is that SCXML supports history > pseudo-states

Re: [SCXML] XPathEvaluator / Error accessing complex event payload

2009-11-03 Thread Rahul Akolkar
On Tue, Nov 3, 2009 at 6:52 AM, Jaroslav Pullmann wrote: > > >  Hello Rahul, >  sorry for the late response, I've been out of office last week. >  I looked at the code once again and found the error cause. The payload >  was in deed wrapped into a bean with a dedicated accessor method >  Node getP

Re: [SCXML] Eclipse plugin available ?

2009-10-26 Thread Rahul Akolkar
: 11-13 rue du Colonel Pierre Avia, 75015 PARIS >> >> +33 1 55 92 59 08 >> >> cedric.nico...@villefluide.com > > -Message d'origine- > De : Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Envoyé : samedi 24 octobre 2009 00:32 > À : Commons Users List > O

RE: [SCXML] Eclipse plugin available ?

2009-10-26 Thread Cedric NICOLAS
ailto:rahul.akol...@gmail.com] Envoyé : samedi 24 octobre 2009 00:32 À : Commons Users List Objet : Re: [SCXML] Eclipse plugin available ? On Fri, Oct 23, 2009 at 12:46 PM, Renaud, Martin wrote: > Hi Rahul, > > We've managed to use scxml very successfully in our application. Thank

RE: [SCXML] Eclipse plugin available ?

2009-10-26 Thread Renaud, Martin
Ok, thanks for the information. -Original Message- From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] Sent: Friday, October 23, 2009 6:32 PM To: Commons Users List Subject: Re: [SCXML] Eclipse plugin available ? On Fri, Oct 23, 2009 at 12:46 PM, Renaud, Martin wrote: > Hi Ra

Re: [SCXML] XPathEvaluator / Error accessing complex event payload

2009-10-25 Thread Rahul Akolkar
On Sun, Oct 25, 2009 at 11:47 AM, Jaroslav Pullmann wrote: >  Hello Rahul, >  although not yet officially released I like using the J6 branch >  (commons-scxml-1.0-SNAPSHOT.jar) because of its XPath support. >  Recently I experience problems when accessing the complex event >  payload (Node: start

Re: [SCXML] Eclipse plugin available ?

2009-10-23 Thread Rahul Akolkar
On Fri, Oct 23, 2009 at 12:46 PM, Renaud, Martin wrote: > Hi Rahul, > > We've managed to use scxml very successfully in our application. Thanks > a lot for the framework! > Good to know. > I have an "after the fact" question: on the main scxml page, the is a > picture of what seems to be an ec

Re: [SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions

2009-10-22 Thread Rahul Akolkar
On Thu, Oct 22, 2009 at 3:00 AM, Jaroslav Pullmann wrote: > > >  Dear Rahul, >  thank you for responding. Essentially the use case is simply >  a selection of a NodeSet instead of a Node and this seeems >  to be what the spec (WD May 2008) guarantees: > >  9.3.3.1 Location Expressions: >  "XPath 2

Re: [SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions

2009-10-22 Thread Jaroslav Pullmann
Dear Rahul, thank you for responding. Essentially the use case is simply a selection of a NodeSet instead of a Node and this seeems to be what the spec (WD May 2008) guarantees: 9.3.3.1 Location Expressions: "XPath 2.0 expressions are used to select a node-set from the data model by

Re: [SCXML] Retrieving a (wrapped) NodeSet for an XPath / user defined XPath functions

2009-10-20 Thread Rahul Akolkar
On Tue, Oct 20, 2009 at 10:42 AM, Jaroslav Pullmann wrote: > >  Dear Rahul, dear all, > >  the result value of an XPath-selection is limited to an XPathConstants.NODE >  as of XPathEvaluator#evalLocation(Context, String). Having a root element > is >  reasonable for assignments etc. but I'd need t

Re: [SCXML] Internal transition not producing expected results

2009-10-14 Thread Rahul Akolkar
On Wed, Oct 14, 2009 at 4:16 PM, Lee, Cheryl - ES/RDR -Gil wrote: > I am having problems with an internal transition in a composite state.  The > transitions "ONLINELOCAL", "ONLINEREMOTE", AND "OFFLINE" lead to the > appropriate states within ControlIsEnabled however, the entry and exit > actio

Re: [SCXML] State and parallel models do not define src attribute

2009-09-24 Thread Loïc Quéran
OK. Thanks for your answers and the hints about evolutions. 2009/9/24 Rahul Akolkar > On Thu, Sep 24, 2009 at 4:30 AM, Loïc Quéran > wrote: > > Although the src attribute is read in > > SCXMLReader.readTransitionTargetSrc(final Configuration configuration, > final > > String src, final Transit

Re: [SCXML] State and parallel models do not define src attribute

2009-09-24 Thread Rahul Akolkar
On Thu, Sep 24, 2009 at 4:30 AM, Loïc Quéran wrote: > Although the src attribute is read in > SCXMLReader.readTransitionTargetSrc(final Configuration configuration, final > String src, final TransitionTarget tt) when deserializing, it seems it is > not possible to define this attribute in a state

Re: [SCXML] Parallel serialization problem

2009-09-24 Thread Rahul Akolkar
On Wed, Sep 23, 2009 at 5:40 AM, Loïc Quéran wrote: > A parallel can have nested parallel children (and history) in addition to > state. I am afraid SCXMLSerializer.serializeParallel() does not handle this > properly. A quick replacement in HEAD revision could be > > while (i.hasNext()) { >      

Re: [SCXML] Re: has anyone written an XMI-to-SCXML XSLT script?

2009-08-26 Thread Rahul Akolkar
2009/8/26 Edzard Höfig : > Hi Jake, > > if you happen to find such a XSLT stylesheet could you post it to the list? > I would also be quite interested in this :-) > I whipped up a basic XMI to SCXML stylesheet (no composite states, no executable content): http://svn.apache.org/repos/asf/common

Re: [SCXML] has anyone written an XMI-to-SCXML XSLT script?

2009-08-25 Thread Rahul Akolkar
On Tue, Aug 25, 2009 at 9:06 PM, Jacob Beard wrote: > Hi all, > > I've just started looking into SCXML Commons, and I'm interested in > attempting to leverage it as a statechart execution environment that > could be used to power a statechart simulator, built on top of Eclipse > UML2Tool's existing

Re: SCXML: "external" vs. "internal" events

2009-08-10 Thread Rahul Akolkar
some more, let us know. -Rahul > Thanks again, > > Martin > > > -Original Message- > From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Sent: Thursday, August 06, 2009 11:49 PM > To: Commons Users List > Subject: Re: SCXML: "external" vs. "

RE: SCXML: "external" vs. "internal" events

2009-08-10 Thread Renaud, Martin
can into it. Thanks again, Martin -Original Message- From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] Sent: Thursday, August 06, 2009 11:49 PM To: Commons Users List Subject: Re: SCXML: "external" vs. "internal" events On Thu, Aug 6, 2009 at 1:58 PM, Rena

Re: SCXML: "external" vs. "internal" events

2009-08-06 Thread Rahul Akolkar
s one example that is perhaps similar to your question (you can dig into the archives for much more on save/restore and persistence/pooling): http://markmail.org/thread/7rzalbdmbtvhr4kq -Rahul > > That's it for now, thanks again for your support. > > -Martin > > &g

RE: SCXML: "external" vs. "internal" events

2009-08-06 Thread Renaud, Martin
gain for your support. -Martin -Original Message- From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] Sent: Thursday, August 06, 2009 12:19 AM To: Commons Users List Subject: Re: SCXML: "external" vs. "internal" events On Wed, Aug 5, 2009 at 5:41 PM, Renaud, Martin

Re: SCXML: "external" vs. "internal" events

2009-08-05 Thread Rahul Akolkar
On Wed, Aug 5, 2009 at 5:41 PM, Renaud, Martin wrote: > Hi (again...) > > > > In the examples/usecases provided on the scxml site, the events are > fired from outside the state machine. I called them "external" events. > > > Is it valid to trigger events from inside my state machine sub-class, in >

Re: SCXML : can we use ${prop-name-attributes} within definition ?

2009-08-05 Thread Rahul Akolkar
n > > > -Original Message- > From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Sent: Wednesday, August 05, 2009 3:41 PM > To: Commons Users List > Subject: Re: SCXML : can we use ${prop-name-attributes} within > definition ? > > On Wed, Aug 5, 20

RE: SCXML : can we use ${prop-name-attributes} within definition ?

2009-08-05 Thread Renaud, Martin
Users List Subject: Re: SCXML : can we use ${prop-name-attributes} within definition ? On Wed, Aug 5, 2009 at 3:29 PM, Renaud, Martin wrote: > Hi Rahul, > > Thanks for answering. > > I want to avoid repeating the event name twice, because of the typo risks > (among others). >

Re: SCXML : can we use ${prop-name-attributes} within definition ?

2009-08-05 Thread Rahul Akolkar
yond the scope of the core library function. -Rahul > Thanks, > > Martin > > > -Original Message- > From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Sent: Wednesday, August 05, 2009 3:05 PM > To: Commons Users List > Subject: Re: SCXML : can we use ${pro

RE: SCXML : can we use ${prop-name-attributes} within definition ?

2009-08-05 Thread Renaud, Martin
ow if this feature exists or is being plan. Thanks, Martin -Original Message- From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] Sent: Wednesday, August 05, 2009 3:05 PM To: Commons Users List Subject: Re: SCXML : can we use ${prop-name-attributes} within definition ? On Wed, Aug

Re: SCXML : can we use ${prop-name-attributes} within definition ?

2009-08-05 Thread Rahul Akolkar
On Wed, Aug 5, 2009 at 8:37 AM, Renaud, Martin wrote: > Hi, > > I would like to know if it's possible, using a built-in feature of > apache commons scxml, to use property place holder in the xml file that > defines the state machine ? The reason is to avoid duplication of event > names in the sm de

Re: Re: [SCXML] Synchronizing state matchines

2009-07-02 Thread Rahul Akolkar
send an ack, whatever else is needed } } -Rahul > Thanks a lot for support. > > Regards, > > > -Original Message- > From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Sent: jeudi 2 juillet 2009 19:34 > To: Commons Users List > Subject: Re: [SCXML] Sync

Re: Re: [SCXML] Synchronizing state matchines

2009-07-02 Thread Cedric NICOLAS
[mailto:rahul.akol...@gmail.com] Sent: jeudi 2 juillet 2009 19:34 To: Commons Users List Subject: Re: [SCXML] Synchronizing state matchines On Mon, Jun 29, 2009 at 7:05 PM, Cedric NICOLAS wrote: > Hi everybody, > > We are starting to use SCXML and Java implementation to set up state > machines that

Re: [SCXML] Synchronizing state matchines

2009-07-02 Thread Rahul Akolkar
On Mon, Jun 29, 2009 at 7:05 PM, Cedric NICOLAS wrote: > Hi everybody, > > We are starting to use SCXML and Java implementation to set up state > machines that represent a coordinated network of mobile devices. We are > using a master state machine that acts as a coordinator and many identical > st

Re: [SCXML] state persistence with failure recovery

2009-06-18 Thread Rahul Akolkar
On Wed, Jun 17, 2009 at 10:38 AM, ws_dev2001 wrote: > > Hi all, > is it possible to persist the state of an scxml instance into a database ? Its almost always possible (at worst as a blob) but feasibility is really an application-specific concern. In very few cases, it may be possible to store ju

Re: [scxml] some ways for storing the states, transitions and any hierarchical structure

2009-06-17 Thread ws_dev2001
Hi Nestor, Has there been any update you have on state persistence for scxml ? Regards, R2D2. Nestor Urquiza-3 wrote: > > Yes I will keep you posted and in fact I am evaluating > to use iBATIC (I posted the question to javaranch, > iBATIC and Hibernate forums) because seems like iBATIC > create

Re: [SCXML] BPEL vs SCXML

2009-06-10 Thread Rahul Akolkar
On Tue, Jun 9, 2009 at 5:25 AM, Alexander Blotny wrote: > Hi, > > in my institute we have an implementation using BPEL for orchestration of > processes in our testbed of an IMS core. Which is an IP based > telecommunication environment. We encountered some real time issues using > BPEL due to sever

Re: SCXML Managing a large number of long-lived state machines.

2009-06-03 Thread Rahul Akolkar
t currently > aware of any others. > > Good luck, > Cheryl > > -Original Message- > From: JEFFREY Mark [mailto:mark.jeff...@post.be] > Sent: Tuesday, June 02, 2009 11:07 AM > To: Commons Users List > Subject: RE: SCXML Managing a large number of long-lived state ma

RE: SCXML Managing a large number of long-lived state machines.

2009-06-02 Thread Lee, Cheryl - ES/RDR -Gil
can't deal with. There may also be other tools that generate SCXML, but I'm not currently aware of any others. Good luck, Cheryl -Original Message- From: JEFFREY Mark [mailto:mark.jeff...@post.be] Sent: Tuesday, June 02, 2009 11:07 AM To: Commons Users List Subject: RE: SCXML M

RE: SCXML Managing a large number of long-lived state machines.

2009-06-02 Thread JEFFREY Mark
duce scxml as output? From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] Sent: Tue 02/06/2009 18:52 To: Commons Users List Subject: Re: SCXML Managing a large number of long-lived state machines. Response below ... On Tue, Jun 2, 2009 at 10:21 AM, JEFFREY Mark wrote:

Re: SCXML Managing a large number of long-lived state machines.

2009-06-02 Thread Rahul Akolkar
Response below ... On Tue, Jun 2, 2009 at 10:21 AM, JEFFREY Mark wrote: > Hello, > > > > We are writing a Java application that uses a state machine and feel > that scxml may be a good fit for us, although our use case is a little > different from the ones presented in the docs. > > > > The logic

Re: [SCXML] changes in next release

2009-05-20 Thread Rahul Akolkar
On Tue, May 19, 2009 at 5:15 AM, Alexander Blotny wrote: > Hi, > > I would like to know if there is a list of planned changes for the next > release of SCXML. > Is there something you are looking for, in particular? In terms of planned changes, we have the JIRA roadmap [1] plus we'll try to get

Re: [SCXML] new release, parameter handling

2009-05-15 Thread Rahul Akolkar
On Fri, May 15, 2009 at 8:39 AM, Alexander Blotny wrote: > Hi, > > I have some questions to the SCXML project. > I am not sure if it is the right place, please tell me if it is not. > This is the right place. > At first I would like to know when the next release will come. I could not > find a

Re: [SCXML] Polling in datamodel

2009-05-11 Thread Rahul Akolkar
On Mon, May 11, 2009 at 9:28 AM, Linda Erlenhov wrote: > Hello! > > The thing here is that the value is never a DOM node. Hence my question. I > previousley asked why the "assign location" didn´t call for the "set" > function in the Context and got the answere that the "assign location" > doesn´t

Re: [SCXML] Polling in datamodel

2009-05-11 Thread Ingmar Kliche
Hi Linda, I'm not sure if I understood how you integrate with the environment and whether my hints are useful. But if you look into assign's implementation (method execute()) http://svn.apache.org/viewvc/commons/proper/scxml/trunk/src/main/java/org/apache/commons/scxml/model/Assign.java?view=marku

Re: [SCXML] Polling in datamodel

2009-05-11 Thread Linda Erlenhov
Hello! The thing here is that the value is never a DOM node. Hence my question. I previousley asked why the "assign location" didn´t call for the "set" function in the Context and got the answere that the "assign location" doesn´t work as "assign name", "assign name" calls the set function and set

Re: [SCXML] Polling in datamodel

2009-05-05 Thread Ingmar Kliche
Linda, you should be able to use the DOM API to read the values. In context.set(name, value) you should check whether the value is a DOM node: import import org.w3c.dom.Node; ... ... set(String name, Object value) { if (value instanceof Node) { Node nodeValue = (Node) value;

Re: [SCXML] Polling in datamodel

2009-05-05 Thread Ingmar Kliche
Sorry, hit the send button to early:--- again: you should be able to use the DOM API to read the values. In set() you should check whether the value is a DOM node: import import org.w3c.dom.Node; ... ... public void set(String name, Object value) { if (value instanceof Node) {

Re: [SCXML] Entry Action

2009-05-01 Thread Ingmar Kliche
Hi Landon, the latter is the case. A state machine will process only one event at a time. The specification [1] defines the concept of an internal and external event queue. Here is a (simplified) description of how an event gets processed: Assuming the state machine has reached a certain state (or

Re: [SCXML] Saving and restoring execution state.

2009-04-30 Thread TonyTheFish
Many thanks for this Rahul. V. Useful. Rahul Akolkar wrote: > > On Tue, Apr 28, 2009 at 2:11 PM, TonyTheFish wrote: >> >> I am considering using SCXML in a high throughput environment where I >> have >> many thousands of state chart instances - naturally this means that the >> instances have

Re: [SCXML] Saving and restoring execution state.

2009-04-29 Thread Rahul Akolkar
On Tue, Apr 28, 2009 at 2:11 PM, TonyTheFish wrote: > > I am considering using SCXML in a high throughput environment where I have > many thousands of state chart instances - naturally this means that the > instances have to be pooled which means that there has to be a way of very > quickly saving

Re: [SCXML] Javascript as expression language

2009-04-27 Thread Roger Hoover
Hi Ingmar, I'm not in a hurry but wanted to know if this was still likely to happen. Thanks for the reply! Roger On Mon, Apr 27, 2009 at 1:45 PM, Ingmar Kliche wrote: > Hi Roger, > you are right - this is still an open issue. Sorry for the "delay". > Beginning from May (this year ;-) I will ha

Re: [SCXML] Javascript as expression language

2009-04-27 Thread Ingmar Kliche
Hi Roger, you are right - this is still an open issue. Sorry for the "delay". Beginning from May (this year ;-) I will have a (part time) intern and I will put him on this issue first. So there is good hope. If you can wait for another few days? Sorry again. - Ingmar. 2009/4/24 Roger Hoover > H

Re: [SCXML] Javascript as expression language

2009-04-27 Thread Rahul Akolkar
On Fri, Apr 24, 2009 at 12:45 AM, Roger Hoover wrote: > Hi Ingmar, > > Did this ever get released? > Not as part of Commons SCXML yet, which is the bit I'm more aware of. -Rahul > Thanks, > > Roger > > On Tue, Dec 16, 2008 at 1:58 PM, Rahul Akolkar wrote: > >> On Tue, Dec 16, 2008 at 1:27 PM,

Re: [SCXML] getting set datats in the datamodel

2009-04-27 Thread Rahul Akolkar
eddelande-> > From: Linda Erlenhov [u...@commons.apache.org] > Sent: 23/4/2009 2:30:58 PM > To: Commons Users List > Subject: Re: [SCXML] getting set datats in the datamodel > > Hello again! > This seems to work, since we now can see that data has changed. > Unfortunat

Re: [SCXML] getting set datats in the datamodel

2009-04-27 Thread Anna Södling
Hi, Is there anyone who has any idea what to do about this? Even a little hint would be appreciated, you don't have to solve the whole problem! /Linda <-Ursprungligt Meddelande-> From: Linda Erlenhov [u...@commons.apache.org] Sent: 23/4/2009 2:30:58 PM To: Commons Users List

Re: [SCXML] Javascript as expression language

2009-04-23 Thread Roger Hoover
Hi Ingmar, Did this ever get released? Thanks, Roger On Tue, Dec 16, 2008 at 1:58 PM, Rahul Akolkar wrote: > On Tue, Dec 16, 2008 at 1:27 PM, Ingmar Kliche > wrote: > > Hi Roger, > > > > yes, we have implemented it and plan to provide it to the project quite > > soon. But the licensing issue

Re: [SCXML] getting set datats in the datamodel

2009-04-23 Thread Linda Erlenhov
Hello again! This seems to work, since we now can see that data has changed. Unfortunately, we seem to have missed out an important part of the question. In addition to being notified when a data value is set, we also would like to be able to "get/recieve" the new data value aswell as the name (in

Re: [SCXML] getting set datats in the datamodel

2009-04-22 Thread Rahul Akolkar
On Wed, Apr 22, 2009 at 9:35 AM, Linda Erlenhov wrote: > Hello > Is there anybody that can help me with my problem described below? > > best regards > //Linda > > On Mon, Apr 20, 2009 at 2:05 PM, Linda Erlenhov > wrote: > >> Hello >> I think I´ve done some mixing between two things that doesn´t w

Re: [SCXML] getting set datats in the datamodel

2009-04-22 Thread Linda Erlenhov
Hello Is there anybody that can help me with my problem described below? best regards //Linda On Mon, Apr 20, 2009 at 2:05 PM, Linda Erlenhov wrote: > Hello > I think I´ve done some mixing between two things that doesn´t work together > as I hoped it would. > > I have this Datamodel, the scxml d

Re: [SCXML] getting set datats in the datamodel

2009-04-20 Thread Linda Erlenhov
Hello I think I´ve done some mixing between two things that doesn´t work together as I hoped it would. I have this Datamodel, the scxml document starts like this: http://commons.apache.org/scxml"; xmlns="http://www.w3.org/2005/07/scxml";> 0 -

Re: [SCXML] getting set datats in the datamodel

2009-04-15 Thread Rahul Akolkar
On Wed, Apr 15, 2009 at 12:34 PM, Linda Erlenhov wrote: > Hello > So I´m back here again. > > My problem now is that I don´t know how to notify. > I looked at the solution suggested below since I thought it would be the > easiest and best looking way to implement this. > > The way my first solutio

Re: [SCXML] Timers in SCXML

2009-04-15 Thread Rahul Akolkar
On Wed, Apr 15, 2009 at 11:02 AM, Linda Erlenhov wrote: > Hello > Sorry to mass-spam email you, but I solved the problem myself after a food > break and some more thinking.  The problem was the way I was trying to solve > the data requests i asked about in another mail. So this is not a problem >

Re: [SCXML] getting set datats in the datamodel

2009-04-15 Thread Linda Erlenhov
Hello So I´m back here again. My problem now is that I don´t know how to notify. I looked at the solution suggested below since I thought it would be the easiest and best looking way to implement this. The way my first solution worked was to use Observer and Observable. Since Observable is a clas

Re: [SCXML] Timers in SCXML

2009-04-15 Thread Linda Erlenhov
Hello Sorry to mass-spam email you, but I solved the problem myself after a food break and some more thinking. The problem was the way I was trying to solve the data requests i asked about in another mail. So this is not a problem anymore, thank you! //Linda On Wed, Apr 15, 2009 at 2:16 PM, Lind

Re: [SCXML] Timers in SCXML

2009-04-15 Thread Linda Erlenhov
Hello again. I run the standalone test and it looks like the timers work fine there (An infinit loop between the two states, the logs, except for those that was nested as you pointed out, are printed one or two seconds apart as specified in the scxml ), so now I´m a bit clueless with how to proceed

Re: [SCXML] Timers in SCXML

2009-04-14 Thread Rahul Akolkar
On Tue, Apr 14, 2009 at 8:19 AM, Linda Erlenhov wrote: > Hello! > > This may be a stupid question but: > I have read through the code for the simple scheduler and I´m  not sure i > understand what happens. > We have written a simple scxml for a small statechart containing two states > with timers

Re: [SCXML] Timers in SCXML

2009-04-14 Thread Linda Erlenhov
Hello! This may be a stupid question but: I have read through the code for the simple scheduler and I´m not sure i understand what happens. We have written a simple scxml for a small statechart containing two states with timers and used the simple scheduler as described in your previous e-mail. A

Re: [SCXML] Timers in SCXML

2009-04-08 Thread Rahul Akolkar
On Wed, Apr 8, 2009 at 7:53 AM, Anna Södling wrote: > Hello, > > I'm having a little problem regarding timers in SCXML. I have built a > simple statemachine with two states and a transition going from each > state to the other. The transitions should not be taken when a user > "orders" an event, b

Re: [SCXML] History state

2009-04-07 Thread Rahul Akolkar
; > -Original Message- > From: Rahul Akolkar [mailto:rahul.akol...@gmail.com] > Sent: Thursday, April 02, 2009 6:25 PM > To: Commons Users List > Subject: Re: [SCXML] History state > > On Thu, Apr 2, 2009 at 5:43 PM, Ouyang, Landon - ES/RDR -Gil > wrote: >&g

Re: [SCXML] getting set datats in the datamodel

2009-04-07 Thread Rahul Akolkar
On Mon, Apr 6, 2009 at 10:35 AM, Linda Erlenhov wrote: > Hello again! > > I´m not sure how to explain what I want to do. Code snippets like the ones below help. > The task I have is to build > an editor that you then can use to build simulations of applications. An > application can be a cd-pl

RE: [SCXML] History state

2009-04-06 Thread Ouyang, Landon - ES/RDR -Gil
.@gmail.com] Sent: Thursday, April 02, 2009 6:25 PM To: Commons Users List Subject: Re: [SCXML] History state On Thu, Apr 2, 2009 at 5:43 PM, Ouyang, Landon - ES/RDR -Gil wrote: > My apologies for not modifying the Subject header in my last e-mail > (reproduced below). > Thanks for cor

Re: [SCXML] getting set datats in the datamodel

2009-04-06 Thread Linda Erlenhov
Hello again! I´m not sure how to explain what I want to do. The task I have is to build an editor that you then can use to build simulations of applications. An application can be a cd-player for instance. What already exists is an editor for building GUI:s without coding (not build by me) and an

Re: [SCXML] getting set datats in the datamodel

2009-04-06 Thread Linda Erlenhov
Hello Armel Me and another girl named Anna has build the editor using GMF, Graphical modeling framework for Eclipse (http://www.eclipse.org/modeling/gmf/) as a part of our Master Thesis project. best regards //Linda On Fri, Apr 3, 2009 at 11:59 AM, Armel SORO wrote: > Hi Linda, > > This is not

Re: [SCXML] getting set datats in the datamodel

2009-04-03 Thread Armel SORO
Hi Linda, This is not really an answer to the problem but a simple question: which kind of graphical editor do you use to build state machines? Was it built from scratch or did you use any specific software to do this? I am indeed interesting in using one like that to model my system and generate

Re: [SCXML] getting set datats in the datamodel

2009-04-02 Thread Rahul Akolkar
For the archives, the discussion below has moved to ongoing thread titled "[SCXML] History state". -Rahul On Thu, Apr 2, 2009 at 5:07 PM, Ouyang, Landon - ES/RDR -Gil wrote: > I am trying to implement a history state.  It does work, returns to the > calling state, however it enters all the sup

Re: [SCXML] History state

2009-04-02 Thread Rahul Akolkar
ystems, Radar Systems - Gilfillan > 7821 Orion Ave, > Van Nuys, CA 91406 > (818) 901-2982 > > -Original Message- > From: Ouyang, Landon - ES/RDR -Gil [mailto:landon.ouy...@itt.com] > Sent: Thursday, April 02, 2009 2:08 PM > To: Commons Users List > Subject: RE: [SCX

RE: [SCXML] getting set datats in the datamodel

2009-04-02 Thread Ouyang, Landon - ES/RDR -Gil
I am trying to implement a history state. It does work, returns to the calling state, however it enters all the super states before getting to the calling state. Which also calls entry actions (when there are entry actions). This is not the behavior I was expecting. Can you explain to me how

Re: [SCXML] getting set datats in the datamodel

2009-04-01 Thread Rahul Akolkar
On Tue, Mar 31, 2009 at 7:46 AM, Linda Erlenhov wrote: > Hello again! > > I have a problem with my datamodel. Or rather the fetching of datas that are > used in the datamodel. > I have my editor for building statemachines graphical, this is then > "translated" into a corresponding SCXML document t

Re: [SCXML] Log output?

2009-03-26 Thread Rahul Akolkar
Please post in plain text or "internet style" as some email clients like to call it ... On Wed, Mar 25, 2009 at 9:39 AM, Anna Södling wrote: >> Hi, >> >> >> I want to use some logging in my scxml-file, for example upon entering >> and exiting a state. Unfortunately, I can't seem to get the hang o

Re: [SCXML] Log output?

2009-03-25 Thread Anna Södling
> Hi, > > > I want to use some logging in my scxml-file, for example upon entering > and exiting a state. Unfortunately, I can't seem to get the hang of how > it works. I've got this line in my scxml-file: > > > And the log output I get (in a console window in Eclipse) looks like > this: >

Re: [SCXML] Log output?

2009-03-24 Thread Rahul Akolkar
On Tue, Mar 24, 2009 at 7:49 AM, Anna Södling wrote: > Hi, > > > I want to use some logging in my scxml-file, for example upon entering > and exiting a state. Unfortunately, I can't seem to get the hang of how > it works. I've got this line in my scxml-file: > > > And the log output I get (in a c

Re: [SCXML] Test for node existence with Data()

2009-03-24 Thread Rahul Akolkar
On Tue, Mar 24, 2009 at 5:21 AM, Jaroslav Pullmann wrote: > >  Dear Rahul, >  the availability of the XPathEvaluator you pointed me to [1] >  provided also a solution for this use case. OK, good to know. Also note that for other languages it is always possible to use user-defined functions to do

Re: [SCXML] Test for node existence with Data()

2009-03-24 Thread Jaroslav Pullmann
Dear Rahul, the availability of the XPathEvaluator you pointed me to [1] provided also a solution for this use case. Many thanks! Jaro [1] http://svn.apache.org/repos/asf/commons/proper/scxml/branches/J6/ Rahul Akolkar wrote: On Mon, Mar 23, 2009 at 9:16 AM, Jaroslav Pullmann

Re: [SCXML] Test for node existence with Data()

2009-03-23 Thread Rahul Akolkar
On Mon, Mar 23, 2009 at 9:16 AM, Jaroslav Pullmann wrote: > > >  Hello, > >  while trying to test for the mere existence of a datamodel node it turned >  out, that Data() yields to different results depending on the availability >  of an immediate textual content of the node: > > >  1) Example, pa

Re: [SCXML] invoke behavior

2009-03-23 Thread Rahul Akolkar
On Mon, Mar 23, 2009 at 7:42 AM, Armel SORO wrote: > Hi everyone, > > I'm currently facing an issue using element, not being called. > Below is my case: > > > >   >       >       >           >       >       >   > >   >       >           >       >       >   > >   > > > > The first

Re: [SCXML] Exposing data model to SCXMLListener

2009-03-22 Thread Rahul Akolkar
On Fri, Mar 20, 2009 at 5:07 PM, Alexei Samonov wrote: > Hi, > > > > What is the recommended API for reading FSM's data model from outside of > FSM? > There are multiple ways (depending on the specifics of the usecase), but perhaps the simplest is to use with the namelist specifying the parts o

Re: [SCXML] Transition/Var question

2009-03-12 Thread Rahul Akolkar
On Thu, Mar 12, 2009 at 11:01 AM, Linda Erlenhov wrote: > Hello again. > > I have made som improvements in my code, but now new intresting and funny > things have happened instead. > > I have this very simple file: > -- > http://www.w3.org/2005/07/scxml"; version="1.0"

<    1   2   3   4   5   6   >