Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8111D34C for ; Wed, 17 Oct 2012 13:25:52 +0000 (UTC) Received: (qmail 45115 invoked by uid 500); 17 Oct 2012 13:25:52 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 43912 invoked by uid 500); 17 Oct 2012 13:25:45 -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 43886 invoked by uid 99); 17 Oct 2012 13:25:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 13:25:44 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.70.183.196] (HELO relay4-d.mail.gandi.net) (217.70.183.196) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Oct 2012 13:25:35 +0000 X-Originating-IP: 217.70.178.152 Received: from mfilter24-d.gandi.net (mfilter24-d.gandi.net [217.70.178.152]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 79B84172094 for ; Wed, 17 Oct 2012 15:25:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter24-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter24-d.gandi.net (mfilter24-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 0sgzmyRw6hZw for ; Wed, 17 Oct 2012 15:25:14 +0200 (CEST) X-Originating-IP: 86.75.233.76 Received: from [10.0.0.16] (76.233.75.86.rev.sfr.net [86.75.233.76]) (Authenticated sender: thiebault@artenum.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 0D454172099 for ; Wed, 17 Oct 2012 15:25:11 +0200 (CEST) Message-ID: <507EB1AF.5010508@artenum.com> Date: Wed, 17 Oct 2012 15:25:03 +0200 From: =?UTF-8?B?QmVub8OudCBUaGnDqWJhdWx0?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121009 Thunderbird/16.0 MIME-Version: 1.0 To: user@commons.apache.org Subject: [SCXML] Undoing a transition Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, Suppose I have the following SCXML file: In my Java code, I did start the SCXML Engine with this file and executed: stateMachine.dispatchSignalEvent("transition1"); I am now in stateB. How can I do programmatically to "undo" the transition, following the inverse path of transition1 and returning to stateA? I can listen to the engine and implement the method public void onTransition(final TransitionTarget from, final TransitionTarget to, final Transition transition) .. but I don't know how to order the engine to perform the reverse operation Kind regards --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org