Flow Action improvements
Flow Actions require some changes.
1) Optional config, headers and parameters
Currently according to the flow-action.xsd the tags header, config and parameters are required. Because of this, we had to add a config tag even if our action has no configs at all. It is strange that the meta tag is not required.
Solution: set minOccurs="0" for config, header and parameters tag in the xsd
2) it is not possible to pass the the configured checkbox over parameters. the checkbox is a boolean field and parameter is a string field, because of this, the action will not be triggered.
Solution: allow boolean fields to be converted to string
3) Documentation for Flow Action xml is wrong
here are examples how we can define the options inside flow-action.xml
the correct way to do so is
<options>
<option value="yes">
<label>Yes</label>
<label lang="de-DE">Ja</label>
</option>
<option value="no">
<label>No</label>
<label lang="de-DE">Nein</label>
</option>
</options>
there is no id or value tags which are defined in the xsd.
Solution: Either change xsd or change the documentation
4) Flow Action webhooks does not contain any information about the app like the shopId
this part just use the configured content and sends it to the webhook. if we want to execute something via flow builder action instead of app action, we cannot do this because shopId is missing.
Solution: Add app related data over headers to the Flow Action hook