donedata overwrite each other
When multiple donedata are present in the file it seems that they get all referencing the last one
<?xml version="1.0" encoding="UTF-8"?>
<scxml datamodel="ecmascript" xmlns="http://www.w3.org/2005/07/scxml" version="1.0" initial="first">
<final id="first">
<donedata>
<param name="first" expr="true" />
</donedata>
</final>
<final id="second">
<donedata>
<param name="first" expr="false" />
</donedata>
</final>
</scxml>
Current Behavior
onEntry: first
onExitInterpreter: { name: 'done.state.$generated-scxml-0', data: { first: false } }
Expected Behavior
onEntry: first
onExitInterpreter: { name: 'done.state.$generated-scxml-0', data: { first: true } }
Detailed Description
Tracking down the issue it seems that https://gitlab.com/scion-scxml/scion/-/blob/main/projects/libraries/scxml/lib/compiler/scjson-to-module.js#L24 here for all donedata the $line and $column are undefined an so it generate for all donedata the same identifier $senddata_lundefined_cundefined
and only the last function defined is used
Edited by David Duarte