Skip to main content

46 docs tagged with "LOC"

View all tags

Agent Configuration

In future releases the administration panel will only be accessed by authorised LOC Owners.

Context and Task

Data Context is an object injected into logic functions at runtime, which containes some key components:

Database Agent

Connecting external databases with built-in drivers. Currently the following databases are supported:

Database Query

For executing a select/action query given by another logic and write the query result (if any) to session storage.

HTTP Agent

For sending HTTP requests to specific hosts.

Implement and Test

We will follow the steps of this article to create, implement and test all assets of the Lakeside Oasis Café use case.

Introduction

LOC SDK is a downloadable NPM package that defines the interfaces of data context as well as agents - a series of features provided by LOC's logic runtime that can read and/or write internal and external storages.

Introduction

LOC Studio is the web-based graphical user interface for LOC Core. Thanks to its highly-interactive Reack framework and UI/UX-driven design, Studio is intuitive to use and doesn't need a lot of walkthrough to learn. You've probably already used most of it in Quick Start and Tutorials.

Local Storage Agent

For sharing data between tasks of one data process, which can stay persistent for a period of time.

Logic Variable Agent

Read a local environment variable (not to be confused with local storage data or secrets in agent configurations). These variable can be set via Studio or CLI, which are useful for configuring a data process' behavior without modifying the logic code.

Payload

Payload is the data and metadata of a trigger as initial input and is accessible from the context object. Currently there are several payload types:

Release Note

LOC v0.9 continues improving both Studio and CLI for better developing process.

Result Agent

Finalise a JSON object as the task result data. If the trigger is synchronized API route or message queue, it will be returned to the trigger, otherwise stored in LOC to be retrieved later.

System Design

In order to implement the order tracking feature for Lakeside Oasis Café, here's a simplified system design process.

Triggers

CLI commands for managing assets in LOC:

Triggers: API Route

For managing API routes, one of the most common trigger for invoking data processes. If multiple data processes are linked to an API route, they will be invoked synchronously.