commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nest...@yahoo.com>
Subject Re: [scxml] nested if statements
Date Thu, 20 Jul 2006 17:47:50 GMT
Hello Rahul ... could we reopen this issue? Seems like
the w3c working group is in its way to accept nested
<if>. Please could you read below the answer from them
as well as my reply about even the use of the <script>
tag?

I am currently with a lot of business rules to
evaluate and definetely when it comes to complexity a
good flow control/scripting mechanism is needed. That
is my goal right now ... to make scxml suitable for
modeling and configuring complex business processes
like the State Oriented Business Protocol I am
building for my Company.
Thanks!,
Nestor

***************************************
w3c thread:
****************************************
Thanks a lot Barnett. Just for your information I am
using commons-scxml to manage a State Oriented
Business Protocol based on Harel Statecharts. As the
business rules grow the complexity needed grows as
well and without good flow control it is kind of
difficult to get efficient results.

I was wondering if besides having nested conditions
wouldn't be wonderful to be able to use the <script>
element (http://www.w3.org/TR/scxml/#N107D9) using
ECMA inside or why not as commons-scxml has proposed
jexl or je as scripting languages. Do you think it
makes sense to use a <script> portion inside an
<onentry> just to setup final variables that could be
tested later on the <onentry> or <transiton> internal
FSM events?

Thanks!,
Nestor

--- "Barnett, James" <James.Barnett@aspect.com> wrote:

> Nestor,
>   After a little discussion in the group, it turns
> out that we weren't
> very clear on this either.  However, we have
> provisionally decided to
> allow them since VoiceXML does.  We will clarify the
> issue in the next
> public draft.
> 
> - Jim
> 
> -----Original Message-----
> From: www-voice-request@w3.org
> [mailto:www-voice-request@w3.org] On
> Behalf Of Nestor Urquiza
> Sent: Friday, July 14, 2006 8:09 AM
> To: www-voice@w3.org
> Subject: [scxml] nested conditions
> 
> 
> Hello all,
> After reading http://www.w3.org/TR/scxml/#N109D0 it
> is
> not clear to me if nested "<if>" are allowed. With
> an
> example is the code below supposed to be scxml
> valid?
> ...
> <n:if cond="status1 eq 'false'">
>    <!-- a first nested condition -->
>    <n:if cond="status2 eq 'true'  ">
>       <n:assign name="result" expr="'status1
> false'"/>
>    <n:else>
>       <n:assign name="result" expr="'statuses
> false'"/>
>    </n:else>
> <n:else>
>    <!-- another nested condition -->
>    <n:if cond="status2 eq 'true'  ">
>       <n:assign name="result" expr="'statuses
> true'"/>
>    <n:else>
>       <n:assign name="result" expr="'status2
> false'"/>
>    </n:else>
> </n:else>
> </n:if>
> 				
> Thanks,
> Nestor
**************************************
end w3c thread
***************************************

--- Nestor Urquiza <nestoru@yahoo.com> wrote:

> Thanks Rahul,
> I created "[scxml] if statement fails within another
> one" jira bug report,
> 
> Nestor
> 
> --- Rahul Akolkar <rahul.akolkar@gmail.com> wrote:
> 
> > On 6/28/06, Nestor Urquiza <nestoru@yahoo.com>
> > wrote:
> > > Hello guys, below a snippet of code where I am
> > trying
> > > to use an if statement within another one.
> > >
> > <snip-example-and-trace/>
> > >
> > > And if the nested if is moved to the same level
> of
> > the
> > > first one no exception is thrown of course.
> > >
> > > Could anyone suggest how can I get the package
> to
> > work
> > > with nested if statements?
> > >
> > <snip/>
> > 
> > Thats a bug, please file in JIRA:
> > 
> >
>
http://jakarta.apache.org/commons/scxml/issue-tracking.html
> > 
> > I'm away for a couple of weeks, this will get
> fixed
> > when I'm back. The
> > fix is straightforward, if you need it urgently --
> > treat <elseif> and
> > <else> as containers for other actions (just like
> > <if> holds a list of
> > child actions) and modify
> oacs.model.If#execute(...)
> > accordingly.
> > 
> > -Rahul
> > 
> > 
> > > Thanks!
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > commons-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > commons-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> commons-user-help@jakarta.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message