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
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. |
© 2001-2020 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.