PreloadFunctions

Label: :IA_Function
Property: type: PreloadFunctions
Inherits from: Function

PreloadFunctions can be used to load multiple Functions (along with Triggers) to speed up application starting and execution.

Before a Graphileon Function definition (node) is executed for the first time it needs to be loaded from the server. Loading Functions successively in a short amount of time on a slow network connection can cause long loading times and poor user experience. Using PreloadFunctions multiple Functions can be (pre)loaded at the same time using one request to the backend, instead of using one request per Function before execution.

Function parameters

Key Description Default value Possible values
ids Ids of functions to be loaded. Note: can only be set on the Function node, NOT on incoming Triggers. Array of integers; see below.
uuids Uuids of functions to be loaded. Note: can only be set on the Function node, NOT on incoming Triggers. Array of strings; see below.
iaNames IaNames of functions to be loaded. Note: can only be set on the Function node, NOT on incoming Triggers. Array of strings; see below.

Outgoing triggers

Type: success

Occurrence: When the requested action was performed successfully.


Example

This example will load all the functions given in the ids, uuids and iaNames parameters. 8 in total.

{
  "type": "PreloadFunctions",
  "iaNames": "evaluate(['defaultGraph', 'request-local-apps'])",
  "ids": "evaluate([9, 10, 12, 20])",
  "name": "Example Preload Functions",
  "uuids": "evaluate(['0d7863a6-0a82-11e8-85b9-024264008aa1', '0d802bd5-0a82-11e8-85b9-024264008aa1'])"
}