Execution

Availability table

Controller availability

Module

Available

module.scripts

Supported feature

module.keycloak

Not supported feature

execution controller

Manages the script lifecycle and generates an execution report.

Behavior varies depending on the script type:

  1. ValueScript — This method must not be called; doing so will result in an error state for the value.

  2. KeycloakScript — Returns an empty Claim on failure; otherwise, the previously computed claim is returned.

  3. DetachedScript — Returns the concatenation of message and content on success, or the error message on failure.

execution.reportFailure(message: string)

Interrupt current script and report a failure with message.

Arguments:
  • message – Message that describe reason of failure.

execution.reportResult(message: string, result?: object)

Interrupt current script execution and report a message

Arguments:
  • message

  • result – holds a result generated by the detached script