You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Loïc Quéran <lo...@gmail.com> on 2009/09/23 11:40:09 UTC
[SCXML] Parallel serialization problem
A parallel can have nested parallel children (and history) in addition to
state. I am afraid SCXMLSerializer.serializeParallel() does not handle this
properly. A quick replacement in HEAD revision could be
while (i.hasNext()) {
TransitionTarget tt = (TransitionTarget)i.next();
if (tt instanceof State) {
serializeState(b, (State) tt, indent + INDENT);
} else if (tt instanceof Parallel) {
serializeParallel(b, (Parallel) tt, indent + INDENT);
}
// serializeHistory
}
Will this be handled in http://issues.apache.org/jira/browse/SCXML-72 ? Is
there an expected release date ?
Loïc
Re: [SCXML] Parallel serialization problem
Posted by Rahul Akolkar <ra...@gmail.com>.
On Wed, Sep 23, 2009 at 5:40 AM, Loïc Quéran <lo...@gmail.com> wrote:
> A parallel can have nested parallel children (and history) in addition to
> state. I am afraid SCXMLSerializer.serializeParallel() does not handle this
> properly. A quick replacement in HEAD revision could be
>
> while (i.hasNext()) {
> TransitionTarget tt = (TransitionTarget)i.next();
> if (tt instanceof State) {
> serializeState(b, (State) tt, indent + INDENT);
> } else if (tt instanceof Parallel) {
> serializeParallel(b, (Parallel) tt, indent + INDENT);
> }
> // serializeHistory
> }
>
<snip/>
Best to open an issue with a patch so this doesn't get lost.
> Will this be handled in http://issues.apache.org/jira/browse/SCXML-72 ?
<snap/>
Yes and no :-) Yes in that the new SCXML IO classes should support
this in the J6 branch when its ready and no in that SCXML-72 is a
complete rewrite so doesn't address the particular class above.
> Is there an expected release date ?
<snip/>
Not for the J6 branch yet (which relates to SCXML-72). For trunk, if I
had to hazard a guess with appropriate disclaimers, I'd say towards
the end of the year.
-Rahul
>
> Loïc
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org