Order of Processing of Actions

Actions are applied in the same order as sent by the plug-in in the "actions" array.

Actions are run after applying all the data collection updates that are sent by plug-in 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 plug-in within the error message. If some actions fail to run, the remaining actions are applied anyway, and the processing errors are sent to the plug-in 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 plug-in.

Here is how Oracle Field Service processes the close message:
  1. Validate entity data collections.

  2. Validate actions.

  3. If there are any validation errors, send the error message to the plug-in; if not, proceed to the next step.

  4. Apply entity data collections update.

  5. Apply actions.

  6. If there are any errors during the update of data collections or running of actions, send the error message to the plug-in; if not, proceed to the next step.

  7. Close the plug-in window.