Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 29087 invoked from network); 26 Jan 2010 13:02:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 26 Jan 2010 13:02:17 -0000 Received: (qmail 765 invoked by uid 500); 26 Jan 2010 13:02:16 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 644 invoked by uid 500); 26 Jan 2010 13:02:14 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 634 invoked by uid 99); 26 Jan 2010 13:02:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:02:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of hal@idi.ntnu.no designates 129.241.56.101 as permitted sender) Received: from [129.241.56.101] (HELO hylle02.itea.ntnu.no) (129.241.56.101) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2010 13:02:04 +0000 Received: from localhost (localhost [127.0.0.1]) by hylle02.itea.ntnu.no (Postfix) with ESMTP id CC5472C0AF for ; Tue, 26 Jan 2010 14:01:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at hylle02.itea.ntnu.no Received: from hamburg.idi.ntnu.no (hamburg.idi.ntnu.no [129.241.107.71]) by hylle02.itea.ntnu.no (Postfix) with ESMTP id DB5222C0AC for ; Tue, 26 Jan 2010 14:01:42 +0100 (CET) Received: from dhcp-110-220.idi.ntnu.no (dhcp-110-220.idi.ntnu.no [129.241.110.220]) (Authenticated sender: hal@idi.ntnu.no) by hamburg.idi.ntnu.no (Postfix) with ESMTPSA id D652A5993 for ; Tue, 26 Jan 2010 14:01:42 +0100 (CET) Message-ID: <4B5EE7B6.9020300@idi.ntnu.no> Date: Tue, 26 Jan 2010 14:01:42 +0100 From: =?ISO-8859-1?Q?Hallvard_Tr=E6tteberg?= Organization: Dept. of Computer and Infomation Sciences, NTNU User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: user@commons.apache.org Subject: [SCXML] Modifying a statechart during runtime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, I been using SCXML for a long time (among others, I've implemented support for Javascript), and I am in general pretty satisfied. In my latest project, I will be generating a statechart from states that will be composed into a hierarchy. The states are actually tied to objects in an object tree, which is traversed to collect and compose the statechart. Since objects come and go, I need to extend the machine during runtime. In principle, I can stop, regenerate and restart the statechart, but I would rather extend it on the fly. - Is it possible to extend the state machine with new states, without restarting the machine? In my case, I only need to add regions in a parallel, so semantically it isn't problematic. - Is there a clean way of storing and restoring the state of the machine, in a format that can be inspected and modified (e.g. to change the current state). Best regards, Hallvard Tr�tteberg --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org