You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Anna Södling <an...@passagen.se> on 2009/03/05 15:04:50 UTC

[SCXML] Evaluating conditions

Hi,
 
When I run an SCXML-file with the Apache Commons engine, where/how are
the guards evaluated? Or more exactly, is this done automatically or do
I have to write some code of my own to handle this? And (if it's done
automatically) what happens if the guard evaluates to false? Do I bounce
back/stay in the source-state then, or do I get an error?
 
Sincerely,
Anna


<P><p><font face="Arial, Helvetica, sans-serif" size="2" style="font-size:13.5px">_______________________________________________________________<BR> </font>

Re: [SCXML] Evaluating conditions

Posted by Rahul Akolkar <ra...@gmail.com>.
On Thu, Mar 5, 2009 at 9:04 AM, Anna Södling <an...@passagen.se> wrote:
> Hi,
>
> When I run an SCXML-file with the Apache Commons engine, where/how are
> the guards evaluated?
<snip/>

oacs.Evaluator#evalCond(Context,String)


> Or more exactly, is this done automatically or do
> I have to write some code of my own to handle this?
<snap/>

Automatically.


> And (if it's done
> automatically) what happens if the guard evaluates to false? Do I bounce
> back/stay in the source-state then, or do I get an error?
<snip/>

Stay in the same state(s). Not an error.

-Rahul


>
> Sincerely,
> Anna
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org