Context and Task
Data Context is an object injected into logic functions during a task, which containes some key components:
Data Context is an object injected into logic functions during a task, which containes some key components:
Connecting external databases with built-in drivers. Currently the following databases are supported:
Emit and query LOC data events.
Accessing and writing remote files. Supports the following protocols/storage:
For sending HTTP requests.
For sharing data between tasks of one data process.
Log (debugging) messages to LOC.
Sending emails with a SMTP server.
Payload is the data sent by triggers as input and is accessible from the context object. Currently there are two payload types:
This quick start will go through a tutorial of building a simple "Hello World" data process in LOC Studio using JavaScript.
Finalise a JSON object as the result data. If the trigger is synchronized API route or message queue, it will be returned to the trigger.
For sharing data between logic during a task (execution) of a data process.