For the complete documentation index, see llms.txt. This page is also available as Markdown.

Run Scripts

These actions provide ability to execute stored scripts using Javax engines.

Run Scripts Actions

Process / ProcessScript

Passes the requested event to a dynamic event handler for processing. Event metadata parameters applicable for this action are as follows:

Parameter
Definition
Example
Default

Dynamic Handler

Name of the code handler to execute request

custom_handler

-

Dynamic Action

Name of the action to call on code handler

CustomCalculate

-

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Run Scripts Process/ProcessScript action eventMeta.parameters",
  "type": "object",
  "properties": {
    "eventMeta": {
      "type": "object",
      "properties": {
        "parameters": {
          "type": "object",
          "properties": {
            "dynamicHandler": {
              "type": "string",
              "definition": "Name of the code handler to execute request",
              "example": "custom_handler",
              "default": null
            },
            "dynamicAction": {
              "type": "string",
              "definition": "Name of the action to call on code handler",
              "example": "CustomCalculate",
              "default": null
            }
          }
        }
      }
    }
  }
}
Example

Input

{
    "product": {
        "id": "product-1",
        "data": {
            "name": "Test Product"
        }
    }
}

Event Metadata

All parameters applicable for the selected code handler are also passed on by ScriptLoadedEventHandler.

Last updated