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 D9758200D59 for ; Sun, 10 Dec 2017 22:44:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D7E12160C09; Sun, 10 Dec 2017 21:44:10 +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 2A006160BF2 for ; Sun, 10 Dec 2017 22:44:10 +0100 (CET) Received: (qmail 25236 invoked by uid 500); 10 Dec 2017 21:44:09 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 25225 invoked by uid 99); 10 Dec 2017 21:44:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 Dec 2017 21:44:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DB3B5C1CFD for ; Sun, 10 Dec 2017 21:44:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id Y5-NP-Ade1mw for ; Sun, 10 Dec 2017 21:44:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8315E5F296 for ; Sun, 10 Dec 2017 21:44:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2FBBBE015F for ; Sun, 10 Dec 2017 21:44:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A9B42212F5 for ; Sun, 10 Dec 2017 21:44:02 +0000 (UTC) Date: Sun, 10 Dec 2017 21:44:00 +0000 (UTC) From: "Ate Douma (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (SCXML-22) The engine must report error/warning when invalid events are triggered MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 10 Dec 2017 21:44:11 -0000 [ https://issues.apache.org/jira/browse/SCXML-22?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma closed SCXML-22. -------------------------- Resolution: Invalid Fix Version/s: (was: 2.0) > The engine must report error/warning when invalid events are triggered > ---------------------------------------------------------------------- > > Key: SCXML-22 > URL: https://issues.apache.org/jira/browse/SCXML-22 > Project: Commons SCXML > Issue Type: Improvement > Affects Versions: 0.5 > Environment: Win XP Professional, jdk 1.4.02 > Reporter: Raj Rao > > The semantics must report an error/warning/notification when an invalid event is triggered, instead of silently discarding it. An invalid event is one that is not specified for the current state. > Here's an excerpt of a converstaion, where the suggested workaround was not applicable. This requirement is crucial for me. > -- > Raj > -------------------------------------------------------------------------------------------------------------------------------------- > > Hello, > > > > I tried sending an invalid event to the state machine > > and didn't see any error being reported. By invalid I > > mean this event was not expected in the current state. > > > > Does the SCXMLSemanticsImpl report an error (via the > > the ErrorReporter) when such an event is silently > > discarded? > > > > No, because the semantics treat it as simply an inconsequential > trigger (causing no change to the state machine), rather than an > error. > One of the ways you could track this is to register a SCXMLListener on > the executor and track onTransition() callbacks (if you get none, the > trigger is "invalid" -- per your definition above). > -Rahul -- This message was sent by Atlassian JIRA (v6.4.14#64029)