Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 73701 invoked from network); 2 Aug 2010 05:43:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Aug 2010 05:43:13 -0000 Received: (qmail 20347 invoked by uid 500); 2 Aug 2010 05:43:12 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 19842 invoked by uid 500); 2 Aug 2010 05:43: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 19834 invoked by uid 99); 2 Aug 2010 05:43:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 05:43:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prem.majeti@aricent.com designates 121.241.96.11 as permitted sender) Received: from [121.241.96.11] (HELO jaguar.aricent.com) (121.241.96.11) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Aug 2010 05:43:01 +0000 Received: from jaguar.aricent.com (localhost [127.0.0.1]) by postfix.imss71 (Postfix) with ESMTP id 32D9E36B37 for ; Mon, 2 Aug 2010 11:11:57 +0530 (IST) Received: from GUREXHT01.ASIAN.AD.ARICENT.COM (gurexht01.asian.ad.aricent.com [10.203.171.136]) by jaguar.aricent.com (Postfix) with ESMTP id 1CDCD36B33 for ; Mon, 2 Aug 2010 11:11:57 +0530 (IST) Received: from GUREXMB02.ASIAN.AD.ARICENT.COM ([10.203.171.134]) by GUREXHT01.ASIAN.AD.ARICENT.COM ([10.203.171.137]) with mapi; Mon, 2 Aug 2010 11:12:39 +0530 From: Prem Chand Majeti To: "user@commons.apache.org" Date: Mon, 2 Aug 2010 11:10:56 +0530 Subject: [scxml] Regarding usage of fireEvent method Thread-Topic: [scxml] Regarding usage of fireEvent method Thread-Index: AcsyBUeXXC9uSRJGTuWlfiUHFKpjWA== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_A19223D6925CB94DA581480BC8CEA5D325632FE38BGUREXMB02ASIA_" MIME-Version: 1.0 --_000_A19223D6925CB94DA581480BC8CEA5D325632FE38BGUREXMB02ASIA_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to implement simple FSM in java. Here is my scxml :- Java Implemetation:- public class FsmTest extends AbstractStateMachine { public FsmTest(URL scxmlDocument) { super(scxmlDocument); } public void first() { //Some process... if(..) fireEvent("event1"); else fireEvent("event2"); } public void second() { // Some Process.... fireEvent("event3"); } public void last() { } } When I try to run this, it was entering into the state "first". But from th= ere no event was fired and it was not moving to other states. Please let me know if I was doing something wrong. Thanks & Regards Prem ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely = for the use of the individual to whom it is addressed. It may contain privi= leged or confidential information and should not be circulated or used for = any purpose other than for what it is intended. If you have received this m= essage in error, please notify the originator immediately. If you are not t= he intended recipient, you are notified that you are strictly prohibited fr= om using, copying, altering, or disclosing the contents of this message. Ar= icent accepts no responsibility for loss or damage arising from the use of = the information transmitted by this email including damage from virus." --_000_A19223D6925CB94DA581480BC8CEA5D325632FE38BGUREXMB02ASIA_--