Re: Question regarding scxmlgui tool

2012-07-05 Thread Rahul Akolkar
On Wed, Jun 20, 2012 at 4:22 AM, Nir Shemesh nirshe...@gmail.com wrote: Hi Apache Users, I need your help regarding my question below snip/ See inline below. Many thanks Nir -- Forwarded message -- From: Fabrizio Morbini fmorb...@gmail.com Date: Tue, Jun 19, 2012 at

Re: [scxml] JEXL Evaluator's evalCond issue

2012-06-16 Thread Rahul Akolkar
On Thu, Jun 14, 2012 at 5:23 PM, sgu...@osc.state.ny.us wrote: 1. Problem renaming method in class used for condition evaluation. Class: Test method: boolean method1(integer i) xml snippet: state id=DELETE_STATE            transition event=delete target=STATUS_UNKNOWN

Re: [scxml] there is a working example?

2012-05-23 Thread Rahul Akolkar
On Mon, May 21, 2012 at 6:55 PM, Jacob Beard jbea...@cs.mcgill.ca wrote: Regarding project status, see this thread posted last week: http://mail-archives.apache.org/mod_mbox/commons-dev/201205.mbox/browser snip/ Or this link: http://markmail.org/message/wu5rfl25fxjyn7tb -Rahul Jake On

Re: [scxml]

2012-05-23 Thread Rahul Akolkar
On Wed, May 23, 2012 at 2:01 AM, Ronald Hinchley commu...@gmail.com wrote: I notice that none of the examples or cases work. W3C Working Draft 16 February 2012. SCXML seems heavenly to me but is there interest in it? snip/ I believe you're asking about the Commons SCXML project, rather than the

Re: [SCXML] Ignoring raise element

2011-10-17 Thread Rahul Akolkar
On Mon, Oct 17, 2011 at 8:43 AM, Dark.Rider85 dark.ride...@yahoo.de wrote: Hi! I wanted to use the raise element but when parsing the .xml file the processor says the following warning: Ignoring element raise in namespace http://www.w3.org/2005/07/scxml; at bundleresource:***.xml:9:38 and

Re: [scxml] invoking methods on an object

2011-10-03 Thread Rahul Akolkar
, at 11:55 PM, Rahul Akolkar wrote: On Mon, Oct 3, 2011 at 9:17 AM, Daniel Luis dos Santos daniel.d...@gmail.com wrote: Hello, I am beggining to use commons-SCXML. For now I created a generic class that wraps the library's code just like the class AbstractStateMachine in the stopwatch

Re: [scxml] invoking methods on an object

2011-10-03 Thread Rahul Akolkar
On Mon, Oct 3, 2011 at 9:17 AM, Daniel Luis dos Santos daniel.d...@gmail.com wrote: Hello, I am beggining to use commons-SCXML. For now I created a generic class that wraps the library's code just like the class AbstractStateMachine in the stopwatch example. Each class from my application

Re: [scxml] Syntax Question

2011-10-01 Thread Rahul Akolkar
On Sat, Oct 1, 2011 at 6:18 AM, Yasser Al Masri ysralma...@yahoo.com wrote: what's the best way to check whether a given variable is any of values within a list? For example, I want to say this: cond=myvar In('a','b','c') or cond=mylist.contain(myvar) snip/ Syntax of expressions within

Re: [scxml] Any Feed From Invoked State Machine Back to Invoker?

2011-09-23 Thread Rahul Akolkar
From: Rahul Akolkar To: Commons Users List user@commons.apache.org; Yasser Al Masri ysralma...@yahoo.com Sent: Thursday, September 22, 2011 8:36 PM Subject: Re: [scxml] Any Feed From Invoked State Machine Back to Invoker? On Thu, Sep 22, 2011 at 7:20 AM, Yasser Al Masri ysralma

Re: [scxml] Any Feed From Invoked State Machine Back to Invoker?

2011-09-22 Thread Rahul Akolkar
On Thu, Sep 22, 2011 at 7:20 AM, Yasser Al Masri ysralma...@yahoo.com wrote: Hi, For synchronous communication between invoker and invoked machines we usually need to pass back a variable or some sort of signal to tell it that a result of a particular operation is so and so. Is there a way to

Re: [scxml] Setting state through history element or other means

2011-09-21 Thread Rahul Akolkar
On Wed, Sep 21, 2011 at 5:53 AM, Dario D darac1...@gmail.com wrote: Hello, Is there a way to programatically change history state of a workflow? Our idea is to be able to set freely the next state to be executed. If we set the state like this:        Set states =

Re: [scxml] Handling condition errors in transitions

2011-09-13 Thread Rahul Akolkar
On Mon, Sep 12, 2011 at 5:17 AM, Dario D darac1...@gmail.com wrote: Hello, I have an SCXML workflow as given below. The conditions in the transitions of state2 are invalid because they have an invalid variable name trans-0. The application was made in the way that on each step forward, it

Re: [scxml] Handling condition errors in transitions

2011-09-13 Thread Rahul Akolkar
On Tue, Sep 13, 2011 at 1:43 PM, Dario D darac1...@gmail.com wrote: 2011/9/13 Rahul Akolkar rahul.akol...@gmail.com When the state machine is in state2, there are three candidate transitions that match event action.next -- two with guards in state2 and one unguarded or condition-less

Re: [SCXML] Call a Web Service

2011-09-03 Thread Rahul Akolkar
On Fri, Sep 2, 2011 at 5:09 AM, dark.rider85 dark.ride...@yahoo.de wrote: Hi! I was trying to search for a possibility to call a web service out of SCXML. I assumed the send command would be the action to use for this intention but I was not able to understand how it should work. In the W3C

Re: [scxml] sendid vs id attribute on send

2011-08-03 Thread Rahul Akolkar
On Wed, Aug 3, 2011 at 5:47 AM, Nick Hofstede nick.hofst...@inventivegroup.com wrote: I noticed that commons scxml uses the attribute sendid on the send element to specify the id of an event, whereas the scxml specification states that you should use the id attribute (see

Re: [scxml] A local transition to a parallel sub-state affects all its parent's siblings

2011-07-27 Thread Rahul Akolkar
if there was any subsequent progress? snap/ IIRC, there wasn't much beyond that thread. Also, worth noting that in that post he is talking about internal events, not internal transitions. -Rahul Thanks, Hynek On Tue, Jul 26, 2011 at 9:14 PM, Rahul Akolkar rahul.akol...@gmail.comwrote: On Mon

Re: [scxml] A local transition to a parallel sub-state affects all its parent's siblings

2011-07-26 Thread Rahul Akolkar
On Mon, Jul 25, 2011 at 6:31 AM, Hynek Cihlar hynek.cih...@gmail.com wrote: I have come across the following case, where I believe the Commons SCXML behaves incorrectly. Assuming the following state machine configuration: scxml xmlns=http://www.w3.org/2005/07/scxml;      

Re: [scxml] SCXML model thread-safe?

2011-07-06 Thread Rahul Akolkar
and not meant to be mutable. Other state should be derived within the execute() method by introspecting the state or root context and persisting changes to said context (which is specific to the executor). -Rahul 2011/7/5 Rahul Akolkar rahul.akol...@gmail.com  On Tue, Jul 5, 2011 at 3:37 AM, Dario D

Re: [scxml] SCXML model thread-safe?

2011-07-05 Thread Rahul Akolkar
On Tue, Jul 5, 2011 at 3:37 AM, Dario D darac1...@gmail.com wrote: Is the SCXML model thread-safe? We're considering to parse the SCXML files on application startup and then store the resulting SCXML models in a cache where multiple threads will access them. Should we expect any

Re: [scxml] Target of transition as variable?

2011-06-23 Thread Rahul Akolkar
On Tue, Jun 21, 2011 at 3:42 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Can I use dynamic transition targets? Something like this? datamodel        data id=dyn_state expr=State1 /datamodel ... transition  ... target=dyn_state/ If I use it on this way, I receive an exception:

Re: [scxml] Target of transition as variable?

2011-06-23 Thread Rahul Akolkar
it takes only one assign per basic_state and one transition in special_state and I does not need to change special_state each time when I want to add a new basic_state snip/ Use history states (see mention in previous email). -Rahul On Jun 23, 2011, at 11:54 PM, Rahul Akolkar wrote: On Tue

Re: [scxml] Transition without changing a state

2011-06-18 Thread Rahul Akolkar
On Sat, Jun 18, 2011 at 9:39 AM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi, Is it a valid scxml expression in apache commons? snip/ If you mean transition, yes, target-less transitions are valid (a.k.a. stay transitions). transition event=internal cond=_eventdata['name'] eq

Re: [jexl][scxml] Change values of map in scxml

2011-06-15 Thread Rahul Akolkar
/commons/scxml/env/SimpleScheduler.html On Jun 14, 2011, at 12:45 AM, Rahul Akolkar wrote: On Mon, Jun 13, 2011 at 10:50 AM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,        I have a data model in my scxml file, that  defined as map:        datamodel                data id=event expr

Re: [jexl][scxml] Change values of map in scxml

2011-06-13 Thread Rahul Akolkar
On Mon, Jun 13, 2011 at 10:50 AM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,        I have a data model in my scxml file, that  defined as map:        datamodel                data id=event expr={'key1' : 'value1', 'key2', 'value2'}        /datamodel        I want to use this data as

Re: Terminate SCXML-Executor

2011-06-11 Thread Rahul Akolkar
On Fri, Jun 10, 2011 at 12:33 PM, Oksana Kolach bo...@gmx.de wrote: Hello everybody, which possibilities exists to terminate an SCXML-Executor, that is running in an infinit loop? snip/ SCXML does not provide any in-built safeguards against infinite loops. Like most languages, its possible

Re: [scxml] JEXL map in scxml

2011-06-08 Thread Rahul Akolkar
On Wed, Jun 8, 2011 at 4:31 AM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,   I'm trying to create and send JEXL map, I wrote:  cs:var name=one expr={ 'test' : 2}/  send event='event1' target=receiver targetType=x-ajax namelist=one/  But SCXML interpreter shows an exception :  

Re: [scxml] src element as a pointer to memory content

2011-06-06 Thread Rahul Akolkar
On Mon, Jun 6, 2011 at 5:35 PM, Dario D darac1...@gmail.com wrote: Hello, Would it be possible to have a PathResolver implementation which treats the src element as a pointer to a database entry where content is stored, or an in-memory object? Of course, I could make a PathResolver

Re: [scxml] trasition tag with type=internal in compound state issue

2011-06-06 Thread Rahul Akolkar
On Mon, Jun 6, 2011 at 7:11 PM, Vance huang vancehu...@yahoo.com wrote: Hi, According to the SCXML spec, the following was stated: The behavior of transitions with 'type' of internal is identical, except in the case of a transition whose source state is a compound state and whose target(s)

Re: [scxml] src element as a pointer to memory content

2011-06-06 Thread Rahul Akolkar
that the String value is simply treated as a URL spec by the parser so it'd be effectively the same. Suggest doing a little test of your own to verify. -Rahul 2011/6/7 Rahul Akolkar rahul.akol...@gmail.com On Mon, Jun 6, 2011 at 5:35 PM, Dario D darac1...@gmail.com wrote: Hello, Would

Re: [scxml] transition leaving a child state of parallel

2011-06-05 Thread Rahul Akolkar
On Fri, Jun 3, 2011 at 3:20 AM, Enrico Nardelli narde...@mat.uniroma2.it wrote: I have the following SCXML ?xml version=1.0 encoding=UTF-8? scxml xmlns=http://www.w3.org/2005/07/scxml; version=1.0 exmode=lax initialstate=initialstate        state id=initialstate                transition

Re: [scxml] Problem raising event in scxml

2011-05-31 Thread Rahul Akolkar
);            }    } } De: Rahul Akolkar rahul.akol...@gmail.com Para: Commons Users List user@commons.apache.org Enviado: jue,26 mayo, 2011 15:31 Asunto: Re: [scxml] Problem raising event in scxml On Thu, May 26, 2011 at 7:55 AM, J J jesfa...@yahoo.es wrote: Hello, I'm

Re: [scxml] Problem raising event in scxml

2011-05-26 Thread Rahul Akolkar
On Thu, May 26, 2011 at 7:55 AM, J J jesfa...@yahoo.es wrote: Hello, I'm having an issue with the raise tag inside an if element in the onentry content. The problem is explained more in this Stackoverflow question: http://stackoverflow.com/questions/6044370/problem-raising-event-in-scxml

Re: [scxml] release date of new version

2011-05-23 Thread Rahul Akolkar
On Mon, May 23, 2011 at 5:50 PM, Uli Biberger ubiber...@yahoo.de wrote: Hello, I wonder if there's any plan for another official release. The 0.9 version is over two years old - and I am curious wether there's active development or just maintainance. snip/ There isn't any official date and

Re: [scxml] Trigger complicated events

2011-05-21 Thread Rahul Akolkar
On Sat, May 21, 2011 at 4:41 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,        In the document about Authoring Applications for the Multimodal Architecture(http://www.w3.org/TR/mmi-auth/), I have noticed an interesting transition tag :        !-- handle GUI input --    

Re: [scxml] Trigger complicated events

2011-05-21 Thread Rahul Akolkar
On Sat, May 21, 2011 at 6:48 PM, Rahul Akolkar rahul.akol...@gmail.com wrote: On Sat, May 21, 2011 at 4:41 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,        In the document about Authoring Applications for the Multimodal Architecture(http://www.w3.org/TR/mmi-auth/), I have noticed

Re: Re: [scxml]

2011-05-17 Thread Rahul Akolkar
On Tue, May 17, 2011 at 3:44 PM, Vance huang vancehu...@yahoo.com wrote: Hi, Rahul: Thanks for taking a look. In further testing, I found the probable cause of this issue is that when the custom action in test2 is executing, sometimes it injects the actionComplete event right back to the

Re: [scxml] events triggered in onentry

2011-05-17 Thread Rahul Akolkar
On Tue, May 17, 2011 at 8:37 PM, Ryan rnidef...@gmail.com wrote: Looks like I signed up for this mailing list about 5 hours too late. Reading today's reply from Rahul, he notes: You should inject events from within a custom action by adding to the set of derived events (param of execute

Re: Re: [scxml]

2011-05-16 Thread Rahul Akolkar
On Mon, May 16, 2011 at 12:26 PM, Vance huang vancehu...@yahoo.com wrote: Hi, Rahul: Here is the trimmed down snippet: snip/ I reduced it even further: state id=active transition event=test2 target=test2/ /state state id=test2 initial=test2-init state id=test2-init onentry

Re: [scxml] Questions about error events and setting workflow state

2011-05-13 Thread Rahul Akolkar
On Fri, May 13, 2011 at 4:07 AM, Dario D darac1...@gmail.com wrote: 2011/5/12 Rahul Akolkar rahul.akol...@gmail.com On Thu, May 12, 2011 at 6:56 AM, Dario D darac1...@gmail.com wrote: 2) One requirement for the application is to allow setting an arbitrary state in a workflow. For example

Re: [digester] Grabbing data from sub-element attributes

2011-05-13 Thread Rahul Akolkar
On Fri, May 13, 2011 at 5:45 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Wouldn't you know it, just after I posted, I had an epiphany: On 5/13/2011 5:33 PM, Christopher Schultz wrote: entities   entity     foosome

Re: [scxml]

2011-05-13 Thread Rahul Akolkar
On Fri, May 13, 2011 at 6:54 PM, Vance huang vancehu...@yahoo.com wrote: Hi, I am using scxml 0.9 release and encountered a weird issue. When I am transitioning between 2 states, it worked fine sometimes but in other times, it failed to transition to the next state. I put logging in onexit

Re: [scxml] Questions about error events and setting workflow state

2011-05-12 Thread Rahul Akolkar
On Thu, May 12, 2011 at 6:56 AM, Dario D darac1...@gmail.com wrote: We're developing an application which will use SCXML for its workflow and I would ask you for advice on a couple of topics: 1) All workflows will have a single state which is called error. Whenever a custom action catches an

Re: [scxml] Usage of send tag

2011-05-11 Thread Rahul Akolkar
On Wed, May 11, 2011 at 2:36 PM, Artem Vovk vovk.ar...@googlemail.com wrote: Hi,        i have a simple send tag:         send event=response target=VUI  targettype=basichttp /         On Apache Commons side i have used JEXL as Evaluator, if I start my machine and execute this tag i

Re: [scxml] Creating ad-hoc arrays in JEXL expressions

2011-05-09 Thread Rahul Akolkar
On Mon, May 9, 2011 at 4:19 PM, Dario D darac1...@gmail.com wrote: Hello, I am trying to create an ad-hoc array in my workflow and provide it to a custom action:    state id=fetchCustomerData        onentry            log expr='Customer - Fetching data'/            al:fetchTableData

Re: [scxml] Calling go() twice

2011-05-03 Thread Rahul Akolkar
On Tue, May 3, 2011 at 10:13 AM, Dario D darac1...@gmail.com wrote: Thanks Jocke. How would you suggest to resume the the last state before the condition was not met? Let's say that the condition was made valid somehow. How to resume from the last state? To continue the previous example:    

Re: [digester] The element type ... must be terminated by the matching end-tag

2011-05-03 Thread Rahul Akolkar
On Tue, May 3, 2011 at 12:48 PM, Patrick Diviacco patrick.divia...@gmail.com wrote: I get the following error: May 3, 2011 6:41:25 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 2336608 column 3: The element type user must be terminated by the matching

Re: [SCXML] Count event support

2011-04-10 Thread Rahul Akolkar
On Sun, Apr 10, 2011 at 11:14 AM, jocke eriksson jock...@gmail.com wrote: Hello SCXML users. I'm the project owner of freeswitch-scxml at google code. I have been waning to add a feature and I'm not quite sure how to implement it. I want to be able to add a count object, when evaluated in a

Re: SCXML and EventDispatcher:send(String sendId, String targe, String type, String event, Map params, Object hints, long delay, List externalNodes)

2011-02-26 Thread Rahul Akolkar
On Sat, Feb 26, 2011 at 5:57 PM, Micka mickamus...@gmail.com wrote: Hi, I would like to understand how to use the send balise with the function send in the EventDispatcher class. send(String sendId, String targe, String type, String event, Map params, Object hints, long delay, List

Re: [vfs] Where is version 1.1?

2011-02-07 Thread Rahul Akolkar
On Mon, Feb 7, 2011 at 4:38 PM, Gary Gregory ggreg...@seagullsoftware.com wrote: All: Should we include a SVN revision number in the manifest.mf file to help out in cases like this? snip/ Don't think we can do much -- there is never any confusion for official releases and there is always

Re: SCXML : SEND vs JEXL FUNCTION

2011-01-27 Thread Rahul Akolkar
On Thu, Jan 27, 2011 at 3:25 PM, Micka mickamus...@gmail.com wrote: Hi, I'm always amazing about the SCXML. I'm using JEXL in my SCXML project and when i discovered all the thing that JEXL can bring ( like custom function ) , I was wondering what is the purpose to use send or invoke tag in

Re: [scxml] serializer

2011-01-16 Thread Rahul Akolkar
On Sun, Jan 16, 2011 at 4:25 AM, jocke eriksson jock...@gmail.com wrote: I am trying to use the SCXMLSerializer and I have a couple of questions. 1. Did not state have an attribute called src  I could have swear that it was there before. I even have documents utilizing it. snip/ The src

Re: [scxml] What version of SCXML Commons is supported?

2011-01-13 Thread Rahul Akolkar
On Thu, Jan 13, 2011 at 8:46 AM, Libor Jelinek ljeli...@virtage.com wrote: Hi all! I am very new to Commons SCXML. First and basic my question is *** What version of W3C SCXML is supported by actual version of Commons SCXML? *** From the few examples and code excerpts I suppose it's some

Re: [digester] Need help with simple digester usage

2011-01-13 Thread Rahul Akolkar
On Thu, Jan 13, 2011 at 12:39 PM, KARR, DAVID (ATTSI) dk0...@att.com wrote: -Original Message- From: Rahul Akolkar Sent: Monday, December 20, 2010 10:18 PM To: Commons Users List Subject: Re: [digester] Need help with simple digester usage On Mon, Dec 20, 2010 at 11:08 PM, KARR

Re: [digester] Need help with simple digester usage

2011-01-13 Thread Rahul Akolkar
On Thu, Jan 13, 2011 at 7:40 PM, KARR, DAVID (ATTSI) dk0...@att.com wrote: -Original Message- From: Rahul Akolkar Sent: Thursday, January 13, 2011 2:07 PM To: Commons Users List Subject: Re: [digester] Need help with simple digester usage On Thu, Jan 13, 2011 at 12:39 PM, KARR

Re: SCXML : getCurrentStateS

2010-12-11 Thread Rahul Akolkar
On Sat, Dec 11, 2010 at 6:26 AM, Micka mickamus...@gmail.com wrote: Hi, I'm trying to get the currentStates in case we have multiple states. by example : ?xml version=1.0 encoding=UTF-8? scxml xmlns=http://www.w3.org/2005/07/scxml;    version=1.0 initialstate=start   parallel

Re: [digester] Class loading issue using commons-digester in OSGi setup

2010-11-30 Thread Rahul Akolkar
On Tue, Nov 30, 2010 at 1:22 PM, niklas modin niklas.mo...@oracle.com wrote:  Hi all, I'm trying to use commons-scxml in an OSGi environment (Equinox) and scxml has a dependency on digester, which causes some class loading issues. Digester gets it's own class loader being a separate bundle,

Re: SCXML : send transition doesn't work when they are in the same state.

2010-11-28 Thread Rahul Akolkar
);         }     } On Fri, Nov 26, 2010 at 7:14 PM, Rahul Akolkar rahul.akol...@gmail.com wrote: This is a post for the user list, but please see below first ... On Fri, Nov 26, 2010 at 1:03 PM, Michael musset mickamus...@gmail.com wrote: Hi, I'm having a problem in my scxml project

Re: [scxml]SCXML Executor Priority?

2010-11-23 Thread Rahul Akolkar
On Tue, Nov 23, 2010 at 4:47 PM, Lee, Cheryl - ES cheryl@itt.com wrote: Hi, I'm still a bit new to SCXML, and I have a single java SCXMLExecutor running on Fedora 11 on a large state machine (about 5000 states).  I am at the point of tuning my system, and I was hoping to be able to

Re: [scxml] Need for JSF

2010-11-18 Thread Rahul Akolkar
Commons SCXML and performing the v0.10 release. Time frame would be atleast a couple of months. -Rahul Thanks, Niklas On 11/16/2010 2:23 PM, Rahul Akolkar wrote: On Tue, Nov 16, 2010 at 4:53 PM, niklas modinniklas.mo...@oracle.com  wrote:  Hi, I'm trying to get SC XML up and running

Re: [scxml] Need for JSF

2010-11-18 Thread Rahul Akolkar
On 11/16/2010 2:23 PM, Rahul Akolkar wrote: On Tue, Nov 16, 2010 at 4:53 PM, niklas modinniklas.mo...@oracle.com  wrote:  Hi, I'm trying to get SC XML up and running in an equinox OSGi environment, and I'm having some dependencies issues. What's the reason for having a dependency

Re: [scxml] Need for JSF

2010-11-16 Thread Rahul Akolkar
On Tue, Nov 16, 2010 at 4:53 PM, niklas modin niklas.mo...@oracle.com wrote:  Hi, I'm trying to get SC XML up and running in an equinox OSGi environment, and I'm having some dependencies issues. What's the reason for having a dependency to myfaces-api ? This isn't a big issue per say I

Re: SCXML Plugin

2010-11-06 Thread Rahul Akolkar
On Sat, Nov 6, 2010 at 9:26 AM, Bilel Messaoud bilelmessa...@gmail.com wrote: Hi to all i really couldnt download the source of scxml plugin [scxml] and i used every link i use eclipse helios 3.6 and please can you help me how i can download the project and how can i be part of this project

Re: [scxml] Questions on Multiple Instances

2010-11-03 Thread Rahul Akolkar
On Mon, Oct 25, 2010 at 12:19 PM, Christopher Dragert chris.drag...@mail.mcgill.ca wrote: The scenario:  I have many different classes (call them type A) each with their own unique SCXML state chart. Though designed to work together, type A classes are necessarily separate because we need

Re: [SCXML] Which XSD file can I use to validate my SCXML before I try to use it?

2010-11-03 Thread Rahul Akolkar
/commons/proper/scxml/branches/J6/extras/ -Mike -Original Message- From: Rahul Akolkar Sent: Thursday, February 04, 2010 3:30 PM To: Commons Users List Subject: Re: Which XSD file can I use to validate my SCXML before I try to use it? On Thu, Feb 4, 2010 at 6:15 PM, Michael

Re: [scxml] Which W3C draft version is supported?

2010-10-20 Thread Rahul Akolkar
On Wed, Oct 20, 2010 at 5:23 AM, henrik.le...@tieto.com wrote: Hi Which W3C draft version is supported by Apache Commons SCXML v0.9 snip/ Commons SCXML v0.9 is closest (there are some missing pieces -- especially optional ones like anchor which were later removed) to this Working Draft:

Re: [digester] Trouble adding a list to a hash map

2010-10-01 Thread Rahul Akolkar
On Fri, Oct 1, 2010 at 3:12 PM, Philip A Grim II pg...@data-tactics.com wrote: I'm having difficulty with the Digester when trying to add a list to a hash map. The following is a portion of the XML I'm digesting: ?xml version=\1.0\ encoding=\utf-8\? Envelope   Person     Locations

Re: [digester] Trouble adding a list to a hash map

2010-10-01 Thread Rahul Akolkar
Please note that its important to post the smallest piece of code that fully demonstrates the problem at hand -- vast majority of the code below is quite unrelated and it takes time to read through each line that you add to your post. In any case, I did find atleast a couple of needles in the

Re: [scxml] Too many state navigation causes StackOverflowException

2010-09-28 Thread Rahul Akolkar
On Mon, Sep 27, 2010 at 6:40 AM, Lorenz Schumann | Sysvision GmbH lorenz.schum...@sysvision.de wrote: Hi Rahul, i took over a project in development and took the implementation as the correct way to do it. But after i read your response (thank you very much by the way!) i re-read everything

Re: [scxml] Too many state navigation causes StackOverflowException

2010-09-28 Thread Rahul Akolkar
On Tue, Sep 28, 2010 at 10:29 AM, Rahul Akolkar rahul.akol...@gmail.com wrote: On Mon, Sep 27, 2010 at 6:40 AM, Lorenz Schumann | Sysvision GmbH lorenz.schum...@sysvision.de wrote: Hi Rahul, i took over a project in development and took the implementation as the correct way to do

Re: [scxml] Too many state navigation causes StackOverflowException

2010-09-24 Thread Rahul Akolkar
On Fri, Sep 24, 2010 at 11:34 AM, Lorenz Schumann | Sysvision GmbH lorenz.schum...@sysvision.de wrote: Hi, i am using Commons SCXML for the first time and am overall new to the Statechart paradigm. But i am working on a software where a statemachine is needed and the first choice fell on

Re: [scxml] Transitions without targets compete for enablement

2010-09-21 Thread Rahul Akolkar
On Tue, Sep 21, 2010 at 4:35 AM, Hallvard Trætteberg h...@idi.ntnu.no wrote: Thanks Rahul for the answer. Comments below:  You're correct that in this case both (or more than two) transitions  could be selected. The selection process in v0.9 picks the first  transition in document order

Re: [scxml] Transitions without targets compete for enablement

2010-09-20 Thread Rahul Akolkar
On Mon, Sep 20, 2010 at 5:25 AM, Hallvard Trætteberg h...@idi.ntnu.no wrote:  Hi, I'm trying to implement a state such that whenever some event (in a predetermined set) occurs a corresponding actions should be performed, e.g. whenever event eA occurs, action aA should be performed, whenever

Re: [scxml] How to retrieve the transition target in a custom action

2010-09-20 Thread Rahul Akolkar
2010/9/20 Thiébault Benoît d...@artenum.com: Hi everyone, I would like to retrieve the transition target (if there is one) in my custom action. How can I do this? My need is more to know if there is a transition than to know what the target is. snip/ I believe you mean a transition

Re: [scxml] Creating a custom action with children

2010-09-20 Thread Rahul Akolkar
2010/9/20 Thiébault Benoît d...@artenum.com: My mistake, read: MyCustomAction class implements org.apache.commons.scxml.model.Action instead of: MyCustomAction class implements CustomAction Le 20 sept. 2010 à 15:38, Thiébault Benoît a écrit : Hello everyone, I'm trying to configure

Re: [scxml] How to retrieve the triggering event in a custom action

2010-09-16 Thread Rahul Akolkar
2010/9/16 Thiébault Benoît d...@artenum.com: Hi everyone, I'm using SCML with custom actions. I followed the Custom Actions tutorial successfully (http://commons.apache.org/scxml/guide/custom-actions.html), but the Hello action only uses parameters provided in the SCXML file. What I want

Re: [scxml] How to retrieve the triggering event in a custom action

2010-09-16 Thread Rahul Akolkar
à 16:38, Rahul Akolkar a écrit : 2010/9/16 Thiébault Benoît d...@artenum.com: Hi everyone, I'm using SCML with custom actions. I followed the Custom Actions tutorial successfully (http://commons.apache.org/scxml/guide/custom-actions.html), but the Hello action only uses parameters provided

Re: [scxml] update datamodel from java

2010-09-04 Thread Rahul Akolkar
On Sat, Sep 4, 2010 at 12:55 PM, Azraiyl azra...@gmail.com wrote: Hello, I've a simple state machine ?xml version=1.0 encoding=UTF-8? scxml xmlns=http://www.w3.org/2005/07/scxml; version=1.0 name=Fan2 initial=Off exmode=strict       datamodel               data id=T expr=10/      

Re: [scxml] update datamodel

2010-09-04 Thread Rahul Akolkar
On Sat, Sep 4, 2010 at 12:40 PM, Azraiyl azra...@gmail.com wrote: Hello, I've a simple state machine ?xml version=1.0 encoding=UTF-8? scxml xmlns=http://www.w3.org/2005/07/scxml; version=1.0 name=Fan2 initial=Off exmode=strict        datamodel                data id=T expr=10/        

Re: [scxml] update datamodel from java

2010-09-04 Thread Rahul Akolkar
On Sat, Sep 4, 2010 at 1:19 PM, Azraiyl azra...@gmail.com wrote: Thanks for your response. Just out of curiousity: Is this the intended behaviour of SCXML? Chapter 3.3.3: If the event clause is missing, the transition is taken whenever the cond evaluates to true. snip/ At a high level, the

Re: [scxml] update datamodel from java

2010-09-04 Thread Rahul Akolkar
On Sat, Sep 4, 2010 at 2:03 PM, Azraiyl azra...@gmail.com wrote: changing the datamodel is IMHO an event which could be triggered through getRootContext().set(...). snip/ If this is to be done, then yes, that'd be a good hook. A simple implementation would reevalute all events without and

Re: [scxml] StopWatch usecase and State pattern

2010-08-22 Thread Rahul Akolkar
(and tests), which generally implies most of the original spec content is done. -Rahul Kind regards, Ben Le 21 août 2010 à 19:47, Rahul Akolkar a écrit : 2010/8/21 Thiébault Benoît d...@artenum.com: Hi everyone, I'm starting using SCXML and there is something that I am not sure

Re: [scxml] condition checking

2010-08-21 Thread Rahul Akolkar
On Fri, Aug 20, 2010 at 3:06 PM, Christopher Dragert chris.drag...@mail.mcgill.ca wrote: My SCXML is crashing when I try to run it and my debugging efforts have gone for naught.  The observable behaviour is as follows -- from the state stationary, the state machine checks the guard on a

Re: [scxml] StopWatch usecase and State pattern

2010-08-21 Thread Rahul Akolkar
2010/8/21 Thiébault Benoît d...@artenum.com: Hi everyone, I'm starting using SCXML and there is something that I am not sure to understand very well. In the previous applications I developed, I used an event-driven architecture : my user interface (for instance) was triggering Events that

Re: [scxml] double evaluation of expr in assignments

2010-08-12 Thread Rahul Akolkar
On Thu, Aug 12, 2010 at 2:51 PM, Fabrizio Morbini fmorb...@gmail.com wrote: Hi, problem: i would like to assign to a variable, v1, the value of another variable, v2, but the name v2 is the result of an expression. For example, assume you have an inspect event that should assign to a

Re: [scxml] datamodel, custom actions and digester

2010-08-11 Thread Rahul Akolkar
On Wed, Aug 11, 2010 at 2:19 PM, Abigail Gertner gert...@mitre.org wrote: On 8/11/2010 12:29 AM, Rahul Akolkar wrote: snip/ The way to obtain the live values of the datamodel is to use the expression evaluator, see interfaces mentioned here:   http://commons.apache.org/scxml/guide/contexts

Re: [scxml] datamodel, custom actions and digester

2010-08-11 Thread Rahul Akolkar
On Wed, Aug 11, 2010 at 3:51 PM, Abigail Gertner gert...@mitre.org wrote: On 8/11/2010 3:36 PM, Rahul Akolkar wrote: On Wed, Aug 11, 2010 at 2:19 PM, Abigail Gertner gert...@mitre.org wrote: On 8/11/2010 12:29 AM, Rahul Akolkar wrote: snip/ The way to obtain the live values

Re: [scxml] datamodel, custom actions and digester

2010-08-10 Thread Rahul Akolkar
On Tue, Aug 10, 2010 at 7:11 PM, Abigail Gertner gert...@mitre.org wrote: Hi -- I have a couple of questions about using commons SCXML. I am trying to use the datamodel within a state as a kind of template, so when I enter the state, I will set some values within the datamodel and then

Re: [scxml] Regarding usage of fireEvent method

2010-08-02 Thread Rahul Akolkar
On Mon, Aug 2, 2010 at 1:40 AM, Prem Chand Majeti prem.maj...@aricent.com wrote: Hi, I'm trying to implement simple FSM in java. Here is my scxml :- scxml xmlns=http://www.w3.org/2005/07/scxml;       version=1.0 initialstate=first    state id=first            transition event=event1

Re: [scxml] Calling methods through scxml

2010-07-31 Thread Rahul Akolkar
On Fri, Jul 30, 2010 at 8:57 PM, Fabrizio Morbini fmorb...@gmail.com wrote: other two alternatives may be: 1) use the expr attribute of the log element. 2) create a custom action, e.g. eval that does just what you are asking. snip/ More about custom actions here:

Re: [math] questions regarding bibliographic citations?

2010-07-27 Thread Rahul Akolkar
On Mon, Jul 26, 2010 at 5:52 PM, Tanim Islam tanim.is...@gmail.com wrote: Hello: I am employing apache commons math 2.2 in the course of my research, and I wonder if there is a format to cite my use of apache commons math? If anyone has a bibtex entry for citing apache commons projects, that

Re: [scxml] Query on usage of datamodel

2010-07-23 Thread Rahul Akolkar
On Fri, Jul 23, 2010 at 9:16 AM, Prem Chand Majeti prem.maj...@aricent.com wrote: Hi, I'm new to SCXML. I had a query on usage of datamodel and data. E.g.:- data name=foo / 1)       Is it possible to set data values from Java program dynamically? 2)       Can I declare this data at

Re: [scxml] passing data to the state

2010-07-12 Thread Rahul Akolkar
On Mon, Jul 12, 2010 at 12:49 PM, qin ding qindi...@yahoo.com wrote: I am learning commons scxml.  I am experimenting writing a poker game using activemq and scxml. So, I have my config xml defined as follows: ?xml version=1.0? scxml xmlns=http://www.w3.org/2005/07/scxml;   

Re: [scxml] passing data to the state

2010-07-12 Thread Rahul Akolkar
details. -Rahul I will study the link you sent to me. - Original Message From: Rahul Akolkar rahul.akol...@gmail.com To: Commons Users List user@commons.apache.org Sent: Mon, July 12, 2010 1:02:04 PM Subject: Re: [scxml] passing data to the state On Mon, Jul 12, 2010 at 12:49 PM

Re: [scxml] stop and resume by serializing the executor does not work

2010-07-03 Thread Rahul Akolkar
On Fri, Jul 2, 2010 at 7:04 PM, RT aara...@gmail.com wrote: I tried your suggestion -  executor.getCurrentStatus().getStates() - in a few places and I noticed something interesting. snip/ OK, reading the content below, this isn't a serialization round trip issue then (that would've been

Re: [scxml] stop and resume by serializing the executor does not work

2010-07-02 Thread Rahul Akolkar
On Thu, Jul 1, 2010 at 8:56 PM, RT aara...@gmail.com wrote: My scxml is defined like this:                       state id=stateA                                onentry                                        log expr='Inside stateA'/                                /onentry                    

Re: [scxml] Rational Software Architect to SCXML plugin

2010-06-16 Thread Rahul Akolkar
On Wed, Jun 16, 2010 at 3:33 PM, Christopher Dragert chris.drag...@mail.mcgill.ca wrote: I'm wondering if anyone on the mailing list has experience with the RSA plug-in.  I want to design my state-charts in RSA, export them as SCXML documents, them use them in a project built on commons

Re: [scxml] src and parser invocation

2010-06-02 Thread Rahul Akolkar
On Wed, Jun 2, 2010 at 8:08 PM, Fabrizio Morbini fmorb...@gmail.com wrote: Hi, if we have the following case:  2 scxml files: a.scxml and b.scxml  in a.scxml, 2 different nodes use the src attribute to source the content from other 2 different nodes defined in b.scxml (using the syntax

Re: [scxml] src and parser invocation

2010-06-02 Thread Rahul Akolkar
, Rahul Akolkar rahul.akol...@gmail.com wrote: On Wed, Jun 2, 2010 at 8:08 PM, Fabrizio Morbini fmorb...@gmail.com wrote: Hi, if we have the following case:  2 scxml files: a.scxml and b.scxml  in a.scxml, 2 different nodes use the src attribute to source the content from other 2 different

Re: [scxml] src and relative url

2010-06-01 Thread Rahul Akolkar
On Tue, Jun 1, 2010 at 2:26 PM, Fabrizio Morbini fmorb...@gmail.com wrote: Hi, i'm using the src attribute to include external content (i haven't yet spent time in figuring our how to use xinclude). snip/ OK, as long as you're aware its deprecated usage. I load the initial scxml file using a

Re: [SCXML] - Conditional Loops

2010-05-24 Thread Rahul Akolkar
On Mon, May 24, 2010 at 5:23 AM, Andrew Mansfield amans...@globeop.com wrote: Hi, Is there any way we can model conditional loops in an scxml document ? Preferably I would like to be able to use the next object iteration from the super state as a var of a sub state nested loop. snip/ The

  1   2   3   >