Ate Douma created SCXML-274:
-------------------------------
Summary: Cleanup and fix namespace handling and writing,
specifically (and only needed) for custom Actions
Key: SCXML-274
URL: https://issues.apache.org/jira/browse/SCXML-274
Project: Commons SCXML
Issue Type: Improvement
Reporter: Ate Douma
Assignee: Ate Douma
Fix For: 2.0
Since dropping the support for XPath (SCXML-250) namespaces now only need to be
recorded on the root SCXML element and for custom Actions.
For the latter a new CustomActionWrapper is introduced and the (currently only)
*Var* Commons SCXML custom action will be wrapped in it (when reading a SCXML
document).
This now (also) will support using a namespace prefix other than the default
'cs' (when writing a SCXML document).
For Java based construction of a SCXML model using the *Var* action, a
convenient CommonsSCXML class will be added,
which automatically registers the Commons SCXML namespace
xmlns:cs="commons.apache.org/scxml";.
This allows using the Var custom action 'naked' without need to wrap it with a
CustomActionWrapper before writing the document with SCXMLWriter.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)