Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 292542009C5 for ; Mon, 16 May 2016 16:04:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 25179160A16; Mon, 16 May 2016 14:04:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6DD6C160131 for ; Mon, 16 May 2016 16:04:52 +0200 (CEST) Received: (qmail 32996 invoked by uid 500); 16 May 2016 14:04:51 -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 32985 invoked by uid 99); 16 May 2016 14:04:50 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2016 14:04:50 +0000 Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 4E12A1A00EB for ; Mon, 16 May 2016 14:04:50 +0000 (UTC) Received: by mail-vk0-f52.google.com with SMTP id c189so60914466vkb.1 for ; Mon, 16 May 2016 07:04:50 -0700 (PDT) X-Gm-Message-State: AOPr4FV1XEOYJH02AfUUie4s1m//dpkCjHu7agUpEsNaH7obhrbu23mYUQ22RwdIt5ficHq0Jo8zP91XDAyY4w== MIME-Version: 1.0 X-Received: by 10.31.209.66 with SMTP id i63mr15592942vkg.21.1463407489529; Mon, 16 May 2016 07:04:49 -0700 (PDT) Received: by 10.103.120.14 with HTTP; Mon, 16 May 2016 07:04:49 -0700 (PDT) In-Reply-To: References: Date: Mon, 16 May 2016 10:04:49 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [SCXML] How to obtain a collection of valid events From: Woonsan Ko To: Commons Users List Content-Type: text/plain; charset=UTF-8 archived-at: Mon, 16 May 2016 14:04:53 -0000 Hi Mansour, I don't see any convenient method to easily figure out what are available event names for transitions like your use case needs. All the knowledge about that is encapsulated in org.apache.commons.scxml2.semantics.SCXMLSemanticsImpl internally, so you might want to take a look at it. SCXMLSemantics is not exposed to applications from the execution context. Regards, Woonsan On Sat, May 14, 2016 at 9:19 AM, Mansour Al Akeel wrote: > Hello all, > > Based on my understanding, a state machine provides feedback about the > input. If the token is not recognized, it should report this. > > I am prototyping in SCXML, and trying to find a way to find if the > supplied event/token is recognized or not. I am unable to find a way > to tell. May be someone else had luck with this, and can share the way > with me. > > So my question is, I am working in an AbstractStateMachine, and I have > an instance of SCXMLExcutor obtained from getEngine(). How can I find > the valid inputs ?? > > > Thank you > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org