Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 20355 invoked from network); 17 Jul 2008 17:29:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jul 2008 17:29:44 -0000 Received: (qmail 48754 invoked by uid 500); 17 Jul 2008 17:29:39 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 48708 invoked by uid 500); 17 Jul 2008 17:29:39 -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 48697 invoked by uid 99); 17 Jul 2008 17:29:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 10:29:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rahul.akolkar@gmail.com designates 209.85.198.243 as permitted sender) Received: from [209.85.198.243] (HELO rv-out-0708.google.com) (209.85.198.243) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2008 17:28:43 +0000 Received: by rv-out-0708.google.com with SMTP id k29so16378rvb.30 for ; Thu, 17 Jul 2008 10:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=7l3MfpO0Nz/9h1jnfHrhIMvhg5K93hUHDJ6AVj0czcc=; b=bNAqx9Th6ibepubt8ChIMK3R0fpmBhoLAevLyiDEqmkCoxe973mmrf5M6X/X9sOnEV r6N/DEXbHTCmAaE1RQ4xrZ4bGcrdN1cvfGdybW2TcdMADu15ulgjyY49QXwajLtYDr7H q1oaXhR2vlErHElQQQ5wE8MH2UzgBC6dBEj5c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=rh+ncprFrBK+V8GoNPGqIJTpqyOIy210qcSQIpkpEqHI5sl4O2wbGoDAwt6YY/hs+z lwAE5zomG4N40M09GJqRVPeqkqHDt/hlUcf1GtjlXnTvoqvVLM/pZMsgwStOXuRKmXeM LlHsq6hX8q/6ictTip5lV3kHxTwo0Q2evvYNQ= Received: by 10.141.96.21 with SMTP id y21mr1330018rvl.132.1216315748014; Thu, 17 Jul 2008 10:29:08 -0700 (PDT) Received: by 10.140.174.3 with HTTP; Thu, 17 Jul 2008 10:29:07 -0700 (PDT) Message-ID: Date: Thu, 17 Jul 2008 13:29:07 -0400 From: "Rahul Akolkar" To: "Commons Users List" Subject: Re: Access to Context from custom action In-Reply-To: <4C0C4A995CF4D54899308C72537136770150E3DE@MAIL04.tsn.tno.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4C0C4A995CF4D54899308C72537136770150E3DE@MAIL04.tsn.tno.nl> X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Jul 17, 2008 at 4:37 AM, Berg, T.W. (Tom) van den wrote: > What are the Java API calls the access the local Context (datamodel) > from a custom action? Short reply since I'm running out of email time. You have a handle to the SCInstance (use the expression evaluator rather than context lookup where appropriate): http://commons.apache.org/scxml/0.8/apidocs/org/apache/commons/scxml/SCInstance.html > And what is the Jexl code to do the same from the SCXML document? > See this page (particularly, the latter half): http://commons.apache.org/scxml/guide/datamodel.html > For example, for the following simple SCML document: > - How can I retrieve the value "NAME1" from the custom action > rti:register ? All expressions untested, but meant to give you some hints: > - How can I change this value from the custom action ? > - What is the Jexl code to pass the value NAME1 as parameter into > rti:register (e.g. instead of using "doRegister") ? > See this post: http://markmail.org/message/a3dtad2sfipehois The rest of that thread may be useful to glance at as well. -Rahul > Any help appreciated. > Thanks, > Tom van den Berg > > > xmlns:rti="http://rti.actions/CUSTOM" > version="1.0" > initialstate="SyncPoint"> > > > > > > NAME1 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org