Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44C4910C9D for ; Fri, 18 Apr 2014 12:02:18 +0000 (UTC) Received: (qmail 76181 invoked by uid 500); 18 Apr 2014 12:02:16 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 76123 invoked by uid 500); 18 Apr 2014 12:02:15 -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 76115 invoked by uid 99); 18 Apr 2014 12:02:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 12:02:15 +0000 Date: Fri, 18 Apr 2014 12:02:15 +0000 (UTC) From: "Ate Douma (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (SCXML-202) State machine running status must be kept and maintained by SCInstance across serialization and deserialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SCXML-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ate Douma resolved SCXML-202. ----------------------------- Resolution: Fixed > State machine running status must be kept and maintained by SCInstance across serialization and deserialization > --------------------------------------------------------------------------------------------------------------- > > Key: SCXML-202 > URL: https://issues.apache.org/jira/browse/SCXML-202 > Project: Commons SCXML > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Ate Douma > Assignee: Ate Douma > Priority: Minor > Fix For: 2.0 > > > As was discovered and reported by Francis Tenda on the commons users@ list, currently it isn't possible to serialize/de-serialize a state machine instance (SCInstance) without keeping hold on the (same) SCXMLExecutor and its embedded SCXMLExecutorContext. > While the use-cases for re-creating a new SCXMLExecutor/SCXMLExecutorContext every time after deserializing an SCInstance might be limited, as you cannot have/keep running Invokers and will have to re-configure the Evaluator, Dispatcher, ErrorReporter as well as any SCXMLListeners every time then, it still should be possible. > The problem is that the SCXMLExecutorContext currently manages the state machine running status and never get 'triggered' to set it (back) to running after re-attaching a SCInstance. With as effect that any subsequent firing of events will be ignored. > The running status logically 'belongs' to the state machine itself, and thus it currently is wrongly managed. > I'll fix this by moving this status property into SCInstance instead, which thereby should also fix the test example Francis Tenda provided on the list. -- This message was sent by Atlassian JIRA (v6.2#6252)