Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 15030 invoked from network); 21 Jun 2010 16:46:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Jun 2010 16:46:34 -0000 Received: (qmail 21385 invoked by uid 500); 21 Jun 2010 16:46:33 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 21231 invoked by uid 500); 21 Jun 2010 16:46:32 -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 21223 invoked by uid 99); 21 Jun 2010 16:46:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 16:46:32 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fmorbini@gmail.com designates 209.85.211.191 as permitted sender) Received: from [209.85.211.191] (HELO mail-yw0-f191.google.com) (209.85.211.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Jun 2010 16:46:24 +0000 Received: by ywh29 with SMTP id 29so2806876ywh.27 for ; Mon, 21 Jun 2010 09:46:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=rFGSY11BsI5ROthmDbDnUi2Xz9iBwyclbQ4ZuCU2wWo=; b=tCUM+w3V3KLrD4VgI5mdSl02qQxh85nyVw2FrEUn4KdxWKA74EJ7IEDqy3VtbUXmpY tRc5xQ5TwpEWIwe1cncajx05BF02LgIgkCmP7UzA+8XQmI+UkFfP0L0C1BbBBbmmdJ1X 2vD1zyfPqSFXpw+2f2Qo4osEKtHyYqIvXqXN4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=t5bCGgyYQja9AkEEwgEOFZnECWIhZGyTOh0WXa2el3s1mMtiitTEX1e4Ry7hSAENTK CyEAWLSFfD52yPAv4SBU7Sju+bh9p8dWmaIcOzKkfuYNsIYsPVZclDYHwu/+U2/vYYgF 36bMagnYd3lbjY3fKoDq+Rzmz4Sl0Pj0EfQVM= Received: by 10.151.94.1 with SMTP id w1mr4823186ybl.72.1277138762193; Mon, 21 Jun 2010 09:46:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.7.3 with HTTP; Mon, 21 Jun 2010 09:45:42 -0700 (PDT) From: Fabrizio Morbini Date: Mon, 21 Jun 2010 09:45:42 -0700 Message-ID: Subject: [scxml] templates To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, i would appreciate if somebody could clarify the working of templates as exemplified here: http://wiki.apache.org/commons/SCXML/Tutorials/Templating i tried the following scenario: ===============file a.scxml: ===============file b.scxml: When i load a.scxml in the executor, i get no errors or warnings. However, the execution ends always with state "end2" no matter if i send the event "start1" or the event "start2". This suggests that nodes cannot use the same name, even though the templating example seems to suggest that the same subnetwork can be used in multiple locations without renaming the nodes. if i rename the two nodes "aa" in a.scxml with "node1" and "node2" the parsing of the file a.scxml fails with error: ERROR 09:26:47.853 [main ] [ModelUpdater ] Initial state null or not a descendant of state with ID "node1" this suggests that, the naming of the node with the src attribute influences how the content from the src url is added to it. So i changed the type of "node1" and "node2" to parallel and that solves the parsing problem but doesn't produce the expected behavior: sending the event "start2" i obtain the following execution trace: DEBUG 09:33:57.749 [main ] [sax ] endDocument() DEBUG 09:33:57.758 [Thread-1 ] [Context ] _eventdata = null DEBUG 09:33:57.758 [Thread-1 ] [Context ] _eventdatamap = {start.entry=null} DEBUG 09:33:57.758 [Thread-1 ] [Context ] _eventdata = null DEBUG 09:33:57.758 [Thread-1 ] [Context ] _eventdatamap = {start.entry=null} DEBUG 09:33:57.758 [Thread-1 ] [SCXMLExecutor ] Current States: [start] DEBUG 09:33:57.758 [main ] [Context ] _eventdata = null DEBUG 09:33:57.758 [main ] [Context ] _eventdatamap = {start2=null} DEBUG 09:33:57.759 [main ] [Context ] _eventdata = null DEBUG 09:33:57.759 [main ] [Context ] _eventdatamap = {start.exit=null, node2.entry=null} DEBUG 09:33:57.759 [main ] [Context ] _eventdata = null DEBUG 09:33:57.759 [main ] [Context ] _eventdatamap = {start.entry=null} DEBUG 09:33:57.759 [main ] [SCXMLExecutor ] Current States: [] it seems that the content of node2 is never executed and end2 is not reached. thanks, fabrizio. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org