You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ingmar Kliche (JIRA)" <ji...@apache.org> on 2008/07/30 15:29:32 UTC

[jira] Created: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

SCXMLSerializer: nested states have a "parentid" attribute
----------------------------------------------------------

                 Key: SCXML-79
                 URL: https://issues.apache.org/jira/browse/SCXML-79
             Project: Commons SCXML
          Issue Type: Bug
    Affects Versions: 0.8
            Reporter: Ingmar Kliche


Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:

<?xml version="1.0" encoding="UTF-8"?>
<scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
 <parallel id="par">
  <state id="S1" parentid="par">
   <state id="S11" parentid="S1">
   </state>
  </state>
  <state id="S2" parentid="par">
   <state id="S21" parentid="S2">
   </state>
  </state>
 </parallel>
</scxml>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

Posted by "Ingmar Kliche (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SCXML-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618659#action_12618659 ] 

Ingmar Kliche commented on SCXML-79:
------------------------------------

Hi Rahul,

when authoring complex SCXML state machines I heavily use to source in the content of states and the datamodel. But this makes it sometimes hard to overlook the resolved state machine. So I use the parser to resolve everything and the serializer to dump the resolved state machine. Also for "debugging" purposes it is much easier to follow the state machine execution based on your logs if you have a resolved SCXML document.

- Ingmar.

> SCXMLSerializer: nested states have a "parentid" attribute
> ----------------------------------------------------------
>
>                 Key: SCXML-79
>                 URL: https://issues.apache.org/jira/browse/SCXML-79
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
>
>         Attachments: SCXMLSerializerTest.patch
>
>
> Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
>  <parallel id="par">
>   <state id="S1" parentid="par">
>    <state id="S11" parentid="S1">
>    </state>
>   </state>
>   <state id="S2" parentid="par">
>    <state id="S21" parentid="S2">
>    </state>
>   </state>
>  </parallel>
> </scxml>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SCXML-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar resolved SCXML-79.
--------------------------------

    Resolution: Fixed

Thanks for the tests. The end tag for <parallel> was missing in testSerializeParallel(), I've added that.

Resolving as fixed since changes are in SVN (I've removed the parentid attribute rendering). Please try it out if you can, thanks.


> SCXMLSerializer: nested states have a "parentid" attribute
> ----------------------------------------------------------
>
>                 Key: SCXML-79
>                 URL: https://issues.apache.org/jira/browse/SCXML-79
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
>
>         Attachments: SCXMLSerializerTest.patch
>
>
> Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
>  <parallel id="par">
>   <state id="S1" parentid="par">
>    <state id="S11" parentid="S1">
>    </state>
>   </state>
>   <state id="S2" parentid="par">
>    <state id="S21" parentid="S2">
>    </state>
>   </state>
>  </parallel>
> </scxml>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SCXML-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar updated SCXML-79:
-------------------------------

    Fix Version/s: 0.9

Thanks Ingmar, I'll take a look soon. Setting fix version to next release, v0.9.

My initial reaction would be to put parentid in the Commons SCXML namespace (its hard to say if anyone is ending up relying on it already).

As a reminder to myself, the initial attribute on SCXML should be changed to initialstate.

Finally, do you mind sharing (very briefly) your usecase for the SCXMLSerializer? There has long been a question in my mind towards its usefulness, so its good to know that someone is using the SCXMLSerializer class :-)


> SCXMLSerializer: nested states have a "parentid" attribute
> ----------------------------------------------------------
>
>                 Key: SCXML-79
>                 URL: https://issues.apache.org/jira/browse/SCXML-79
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
>
>         Attachments: SCXMLSerializerTest.patch
>
>
> Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
>  <parallel id="par">
>   <state id="S1" parentid="par">
>    <state id="S11" parentid="S1">
>    </state>
>   </state>
>   <state id="S2" parentid="par">
>    <state id="S21" parentid="S2">
>    </state>
>   </state>
>  </parallel>
> </scxml>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

Posted by "Ingmar Kliche (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SCXML-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ingmar Kliche updated SCXML-79:
-------------------------------

    Attachment: SCXMLSerializerTest.patch

This patch contains a test case "testSerializationParallel" which has nested states.

It also fixes some name space issues for <var> and <exit> test cases.

> SCXMLSerializer: nested states have a "parentid" attribute
> ----------------------------------------------------------
>
>                 Key: SCXML-79
>                 URL: https://issues.apache.org/jira/browse/SCXML-79
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>         Attachments: SCXMLSerializerTest.patch
>
>
> Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
>  <parallel id="par">
>   <state id="S1" parentid="par">
>    <state id="S11" parentid="S1">
>    </state>
>   </state>
>   <state id="S2" parentid="par">
>    <state id="S21" parentid="S2">
>    </state>
>   </state>
>  </parallel>
> </scxml>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SCXML-79) SCXMLSerializer: nested states have a "parentid" attribute

Posted by "Rahul Akolkar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SCXML-79?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rahul Akolkar closed SCXML-79.
------------------------------


Thanks for drawing out your usecase, makes sense.

Closing this issue.


> SCXMLSerializer: nested states have a "parentid" attribute
> ----------------------------------------------------------
>
>                 Key: SCXML-79
>                 URL: https://issues.apache.org/jira/browse/SCXML-79
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
>
>         Attachments: SCXMLSerializerTest.patch
>
>
> Nested states appear to have a "parentid" attribute (which is not defined in the spec) when serialized. Example:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="http://www.w3.org/2005/07/scxml" xmlns:cs="http://commons.apache.org/scxml" version="1.0" initial="par">
>  <parallel id="par">
>   <state id="S1" parentid="par">
>    <state id="S11" parentid="S1">
>    </state>
>   </state>
>   <state id="S2" parentid="par">
>    <state id="S21" parentid="S2">
>    </state>
>   </state>
>  </parallel>
> </scxml>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.