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 [mailto:[email protected]] Sent: Wednesday, December 12, 2012 12:00 PM To: [email protected] 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: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
