Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AFA40101ED for ; Thu, 21 Nov 2013 23:51:35 +0000 (UTC) Received: (qmail 86007 invoked by uid 500); 21 Nov 2013 23:51:35 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85940 invoked by uid 500); 21 Nov 2013 23:51:35 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 85931 invoked by uid 99); 21 Nov 2013 23:51:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Nov 2013 23:51:35 +0000 Date: Thu, 21 Nov 2013 23:51:35 +0000 (UTC) From: "Woonsan Ko (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (SCXML-101) not handled as global MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCXML-101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Woonsan Ko updated SCXML-101: ----------------------------- Fix Version/s: (was: 0.10) 2.0 > not handled as global > --------------------------------- > > Key: SCXML-101 > URL: https://issues.apache.org/jira/browse/SCXML-101 > Project: Commons SCXML > Issue Type: Bug > Affects Versions: 0.9 > Reporter: Ingmar Kliche > Fix For: 2.0 > > > The SCXML spec says: "Logically, there is a single globally visible data model for the entire state machine. As an authoring convenience, however, we allow as a child of any , thus allowing parts of the data model to be distributed throughout the document closer to the locations where the data will be accessed. However, all instances of the element are created and initialized when the state machine is instantiated and may be accessed from any state at any time." [1] > There are two issues: > 1) The current impl of commons-scxml introduced a scoping, such that in elements contained within a are only visible in this state and its children (due to context chain). I.e. the is not entirely global. > 2) Initialization of 's contained in a (i.e. non-root-datamodels) take place while entering the corresponding state for the first time while creating the context (SCXMLInstance#getContext()). But initialization of elements has to take place at state machine initialization time. > [1] http://www.w3.org/TR/scxml/#datamodel -- This message was sent by Atlassian JIRA (v6.1#6144)