Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 496 invoked from network); 2 Mar 2009 10:07:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 10:07:35 -0000 Received: (qmail 56913 invoked by uid 500); 2 Mar 2009 10:07:31 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 56845 invoked by uid 500); 2 Mar 2009 10:07:31 -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 56834 invoked by uid 99); 2 Mar 2009 10:07:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 02:07:31 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of linda.erlenhov@gmail.com designates 209.85.218.172 as permitted sender) Received: from [209.85.218.172] (HELO mail-bw0-f172.google.com) (209.85.218.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 10:07:23 +0000 Received: by bwz20 with SMTP id 20so1863949bwz.42 for ; Mon, 02 Mar 2009 02:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=rTElPzgK7Idq5hLibgGh1KbzLHl7iq75+3hR6Vrxv24=; b=hLBn/WhICdVgElZZ1qKGpinnn+m+ePRddzkrhr/s6ftljQ96zy1ADNTmBdCKxPpAk+ UzsOra0xJdBAVydaK3cpw0gc3/dvB4eOO3m3HSLK8iTB6puf903aYg6bnS8GDhhlNBQt fTlpKivTv7OGTgJn9qlLgfRNNTVUjgIKtYhbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Kdgo9dpVvnkMb1bTP90HVDN4VvWZGSgrkEWMa8TWIO3RK4zcgjxQ4iCtGlbQlA82cC shpBqIxR/80NVWXknlH4gC3cMt0KZZ+NBltMZWVwMMLJfDN+V/wUm66D3TP1Jt3Zh/VJ 13R7IBtZ2gN9MWS9t6+FYrNQYDtkUAu4QDvpE= MIME-Version: 1.0 Received: by 10.181.214.13 with SMTP id r13mr2057182bkq.202.1235988422362; Mon, 02 Mar 2009 02:07:02 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2009 11:07:02 +0100 Message-ID: Subject: Re: [SCXML] Transition/Var question From: Linda Erlenhov To: Commons Users List Content-Type: multipart/alternative; boundary=001636c599f6dc873904641ffae0 X-Virus-Checked: Checked by ClamAV on apache.org --001636c599f6dc873904641ffae0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello Yes this is what I want to do, but I don=B4t understand how (1) is done. Wi= th the getEngine you get the rootContext, The rootContext describes ALL var:s in the StateMachine as I understand, so then it should be the context associated with the transition I want. How do I do that? The transition typ= e doesn=B4t have a name and I can=B4t find a method that takes an "executable object"ish and returns something that I want. best regards //Linda On Sat, Feb 28, 2009 at 6:20 AM, Rahul Akolkar wro= te: > On Fri, Feb 27, 2009 at 7:06 AM, Linda Erlenhov > wrote: > > Hello again! > > > > > >> > >> > >> followed by introspection like so: > >> > >> getEngine().getRootContext().get("outcome"); > >> > >> > > > > The problem with that approach is that i won=B4t know the names of my > "var":s. > > > > The id=E9a is: > > I=B4m building an graphical editor for Statecharts, where you can model= a > > statemachine with some simple drag and drop actions. When your satisfie= d > > with your machine the editor generates an SCXML-file which then is mean= t > to > > be run. Everything I do has to be "generic" so what I wanted was a way > to, > > when the listner registers an "onTransition" ( the class Implements the > > SCXMLListener interface) move: > > 1. Check if there is an "var" associated with that transition > > 2. If so, fetch the exp. > > > > > IIUC, for (1), introspect the Transition object (the list of actions > therein). (2) is above (replace the String constant "outcome" with the > value obtained in 1). > > -Rahul > > > > best regards > > //Linda > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --001636c599f6dc873904641ffae0--