Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 92550 invoked from network); 30 Apr 2008 10:09:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2008 10:09:14 -0000 Received: (qmail 58646 invoked by uid 500); 30 Apr 2008 10:09:10 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 58473 invoked by uid 500); 30 Apr 2008 10:09:09 -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 58402 invoked by uid 99); 30 Apr 2008 10:09:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 03:09:09 -0700 X-ASF-Spam-Status: No, hits=2.1 required=10.0 tests=DNS_FROM_RFC_BOGUSMX,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [64.34.186.221] (HELO app1-dc.pointclark.com) (64.34.186.221) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Apr 2008 10:08:14 +0000 Received: by app1-dc.pointclark.com (Postfix, from userid 502) id 188F11058016; Wed, 30 Apr 2008 06:07:32 -0400 (EDT) Received: from app1-dc.pointclark.com (localhost.localdomain [127.0.0.1]) by antispam2.pointclark.com (Postfix) with ESMTP id 28FC7105806D for ; Wed, 30 Apr 2008 06:06:48 -0400 (EDT) Received: from postaldistrix.iveri.com (unknown [196.23.45.7]) by antivirus2.pointclark.com (Postfix) with SMTP id 413D41058009 for ; Wed, 30 Apr 2008 06:06:30 -0400 (EDT) Received: by postaldistrix.iveri.com (Postfix, from userid 103) id 5978814ABD6; Wed, 30 Apr 2008 12:07:41 +0200 (SAST) Received: from [192.168.128.165] (tetrix.gaul.iveri.com [192.168.128.165]) by postaldistrix.iveri.com (Postfix) with ESMTP id 8DF5514ABCE for ; Wed, 30 Apr 2008 12:07:40 +0200 (SAST) Message-ID: <481844A5.3080909@iveri.com> Date: Wed, 30 Apr 2008 12:06:29 +0200 From: Tony Seebregts Organization: iVeri Payment Technology User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Commons Users List Subject: Re: [SCXML] _eventdata not included in collection events ? References: <481725EF.5090509@iveri.com> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on postaldistrix.iveri.com X-Spam-Level: X-Virus-Scanned-ASP: Point Clark Networks ASP Antivirus X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=0.6 required=4.0 tests=AWL,BAYES_05, DNS_FROM_RFC_BOGUSMX autolearn=no version=3.0.4 Ah, of course ... thanks Rahul ! This exposes a problem with the Javascript evaluator though. The Javascript engine (both JDK and JSR223) isn't able to apply the [] operator to a HashMap because its a Java object rather than a Javascript object (using _eventdatamap.get('event.name') works fine). Will file a bug... regards Tony >> Hi, >> >> I'm trying to pass information from a class that extends Action via a >> TriggerEvent payload but in the SCXML script the _eventdata value for >> the associated event transition seems to be null. >> >> Any ideas ? >> >> The payload works fine if I call triggerEvent but not if I just add the >> event to the events Collection and I can't figure out why (for various >> reasons triggerEvent doesn't work in the scenario). >> > > > Yup, you shouldn't use triggerEvent here. > > The way derived events are handled is to process all of them in a > microstep. Since there may be more than one event, _eventdata is > ambigous, and _eventdatamap['event.name'] should be used instead for > derived events. > > For example, see the eventdata_* test case documents in the JUnit test > suite ... few of them are here: > > http://svn.apache.org/repos/asf/commons/proper/scxml/trunk/src/test/java/org/apache/commons/scxml/env/jexl/ > > -Rahul --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org