smart_batch
Smart batch is a variant of the "batch" command that allows for templating of command parameters via a provided environment. Individual commands can also set their results into the environment allowing later commands to access them. See the "RealityServer Features" section of the Document Centre for more details.
arguments
- "commands" : Array
The sequence of commands to execute. Each element is a Batch_sub_command type with support for the following additional properties. "id": If provided then the result of the command is set back into the environment under this name; future commands can then reference this variable. "ignore_error": If true then errors returned by this command are ignored.
- "continue_on_error" : Boolean (default: true)
Controls if execution will continue on error, or halt on error. If halt on error then all subsequent commands will be aborted. Error responses will be generated for aborted commands.
- "environment" : Map (default: Map(
The initial environment variables for commands.
return value
Smart_batch_responseAn array of responses for each command and a flag indicating if an error occurred while executing the command batch. Additionally the final, modified, environment is returned.