Core Methods
Introduction
In addition to the extensible run-time actions supported by agents and services
loaded by the services
and agents
configuration in the LogicApp configuration,
there is also a set of built-in methods which are always available to Lua scripts.
These methods are handled by the LogicApp itself and do not rely on external Lua Agent or Lua Service components.
Invoking Built-In (Core) Methods
A Lua Script can access the built-in core actions with code such as the following:
local n2svcd = require "n2.n2svcd"
local args = ...
-- Sleep 5 seconds
n2svcd.wait (5)
return "SUCCESS AFTER SLEEP"