commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Barnett <>
Subject RE: [scxml] update data model
Date Wed, 12 Dec 2012 17:05:51 GMT
Use the 'delay' attribute on <send> to create a timer.  Then add an event handler/transition
that catches the delayed event and updates the data model (using the executable content that
is a child  of <transition>).

- Jim

-----Original Message-----
From: Riccardo Manoni [] 
Sent: Wednesday, December 12, 2012 12:00 PM
Subject: [scxml] update data model

Hi all,

i'm new to scxml so here i am with a (maybe dumb..) question: is it possible to update the
datamodel or "raise" an event from a java method? For example, in the StopWatch use case,
can i force the life cycle to go in "reset" state when 10sec elapsed?

My intention is let the data model knows about the time elapsed since the "start", so i think
i need a way to communicate the seconds elapsed to the data model... Can someone point me
in the right direction? Thanks.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message