Order of Processing of Actions
Actions are applied in the same order as sent by the plugin in the "actions" array.
Actions are run after applying all the data collection updates that are sent by plugin in the same close message. No actions are applied if errors occur during the validation of data collections and all actions. All validation errors are sent to a plugin within the error message. If some actions fail to run, the remaining actions are applied anyway, and the processing errors are sent to the plugin within the error message. Each error contains the id of action that is failed, or the id of the action that doesn't pass validation. Id is the order number of the action in the actions list, sent by the plugin.
Validate entity data collections.
Validate actions.
If there are any validation errors, send the error message to the plugin; if not, proceed to the next step.
Apply entity data collections update.
Apply actions.
If there are any errors during the update of data collections or running of actions, send the error message to the plugin; if not, proceed to the next step.
Close the plugin window.