I have a dialog in which user picks a record. After submitting, the transition runs a service, which loads data and then renders an output file.
<transition name="exportActiveBatch_LinkId" read-only="true">
<actions>
<service-call name="mantle.ledger.LedgerLoadingServices.runLinkId#Export" in-map="context+[batchId:batchIdPicker]" out-map="context" ignore-error="false"/>
<if condition="hasError==true">
<!--<message error="true">Error occurred '${errorMessage}'!</message>-->
<log message="Error occurred '${errorMessage}'!" level="error"/>
<else>
<!--<message error="false">Export successful.</message>-->
<log message="Export successful." level="info"/>
</else>
</if>
</actions>
<default-response type="none"/>
<error-response url="."/>
</transition>
Everything works fine, data is loaded correctly, screen is rendered and output file is generated. The problem is, that the dialog does not close and remains in modal.
I would expect the dialog to close, but that does not happen. How shall I treat the transition responses correctly?