[scxml] Setting state through history element or other means

2011-09-21 Thread Dario D
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 = executor.getCurrentStatus().getStates(); TransitionTarget tt = (TransitionTarget)

Re: [scxml] Handling condition errors in transitions

2011-09-13 Thread Dario D
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 in state _processing. The two in state2 are not followed, but subsequently

[scxml] Handling condition errors in transitions

2011-09-12 Thread Dario D
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 triggers an action.next event, followed by any external events inserted by

[scxml] SCXML model thread-safe?

2011-07-05 Thread Dario D
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 inconsistencies? Note that executors will not be cached, and a new executor will be

Re: [scxml] SCXML model thread-safe?

2011-07-05 Thread Dario D
Rahul Akolkar rahul.akol...@gmail.com 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

[scxml] src element as a pointer to memory content

2011-06-06 Thread Dario D
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 implementation which will parse the value of src make a query to the database,

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

2011-06-06 Thread Dario D
, 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 implementation which will parse

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

2011-05-13 Thread Dario D
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, if we have the following workflow: A-B-C-D-E and the workflow

[scxml] Questions about error events and setting workflow state

2011-05-12 Thread Dario D
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 error, it will fire a derived event and this will cause the workflow go

Re: [scxml] Calling go() twice

2011-05-10 Thread Dario D
(event cond). Regards Jocke. 2011/5/3 Dario D darac1...@gmail.com: Hello all, I've just started using SCXML and it's great. However, I've hit a brick wall and I can't seem to figure out something. I have the following XML file: scxml xmlns=http://www.w3.org/2005/07/scxml

Re: [scxml] Calling go() twice

2011-05-10 Thread Dario D
'/ /onexit /state and this works. 2011/5/10 Rahul Akolkar rahul.akol...@gmail.com On Tue, May 10, 2011 at 8:51 AM, Dario D darac1...@gmail.com wrote: Rahul, in regards to triggering events, I am trying to trigger them from within the workflow like this: datamodel data

[scxml] Creating ad-hoc arrays in JEXL expressions

2011-05-09 Thread Dario D
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 select=['col1', 'col2'] / /onentry /state In the custom

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

2011-05-09 Thread Dario D
Thanks a lot Rahul. 2011/5/10 Rahul Akolkar rahul.akol...@gmail.com 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

[scxml] Calling go() twice

2011-05-03 Thread Dario D
Hello all, I've just started using SCXML and it's great. However, I've hit a brick wall and I can't seem to figure out something. I have the following XML file: scxml xmlns=http://www.w3.org/2005/07/scxml; version=1.0 initialstate=state1 state id=state1 onentry

Re: [scxml] Calling go() twice

2011-05-03 Thread Dario D
. It will start the state machine and it will go through all steps that meets the criteria (event cond). Regards Jocke. 2011/5/3 Dario D darac1...@gmail.com: Hello all, I've just started using SCXML and it's great. However, I've hit a brick wall and I can't seem to figure out something. I have