Globals
Globals object is used to store and manage properties in the global store.
- Module:
core/globals
- Definition: https://github.com/eclipse/dirigible/issues/30
- Source: /core/globals.js
- Status:
stable
- Group:
core
Basic Usage
import { globals } from "sdk/core";
import { response } from "sdk/http";
globals.set("attr1", "value1");
let attr = globals.get("attr1");
response.println("[Attribute]: " + attr);
response.flush();
response.close();
Functions
Function | Description | Returns |
---|---|---|
get(key) | Returns the value per key from the global parameters | string |
set(key, value) | Sets the value per key to the global parameters | - |