mstaer
1
I can see someone had an issue a while ago like this, but I’m on the latest version.
Nested flows do not seem to be working in this version. With or without arguments.
Try the following:
<script is="dmx-flow" id="flow2" type="text/dmx-flow">{
bootbox.alert: {title: "Hello!", message: "!!!"}
}</script>
<script is="dmx-flow" id="flow1" type="text/dmx-flow">{
subflow: {action: "{{flow2.run()}}"}
}</script>
<button id="btn2" class="btn btn-secondary" dmx-on:click="flow2.run()">Button</button>
mstaer
2
Anyone else experiencing this issue?
jeoff75
3
I’m running into the exact same issue (php 7.3 wappler 3.5.4) !
Subflow is never executed. (no prompt, no variable change in my run step)
I may be reading this incorrectly but shouldn't this line be calling 'dmx-on:click="flow1.run()"'
which then inturn calls the subflow 'flow2.run()'
?
jeoff75
5
It works with a regular “run” step instead of “subflow” :
run: {action: “{{load_cart.run()}}”, name: “mysubflow”}
Which makes me think that either I don’t understand the way this step should be used or it’s just redundant (and useless) ?