vdl-action
Run a dynamic expression or call a JavaScript function and pass the return value onto the next VDL action in the group. Whether this action waits for something to complete depends on the return value of command. If the command returns a promise then it will wait for that promise to resolve.
Required parent element
Must be contained within one of the following elements:
Example
<vdl-action-group name="runExpressionAction">
<vdl-action command="=scenario.entities.MyScalar.value"></vdl-action>
<!-- Any proceeding VDL action will be able to get the return value from the expression -->
</vdl-action-group>
<vdl-action-group name="runFunctionAction">
<vdl-action command="=myJavaScriptFunction"></vdl-action>
<!-- Any proceeding VDL action will be able to get the return value from calling myJavaScriptFunction -->
</vdl-action-group>
Attributes
command | The dynamic expression or function reference to invoke for when this VDL action is called. The return value of the expression or function that is called will be passed on to the next VDL action in the VDL action group. | requires expression | required |
---|---|---|---|
silent-error | By default if an error if thrown within the command call it will be shown as an error toast message to the end user. If silent-error is enabled the error toast message will not be shown. |