lsFusion Brief
Brief on lsFusion elements for AI agents
This article is the TOP of the brief branch: the model in outline, plus the
map that says which article to open. It is deliberately not a short version of
those articles. What is here is enough to classify a task and answer a rough conceptual
question.
Which branch: language — statement / operator syntax and the interfaces client code receives and calls; paradigm — concepts and the system-module libraries; how-to — task recipes. Those three are searched with lsfusion_retrieve_docs. When unsure which one, omit the filter and it searches all three and merges them.
brief and rules are not searched. Each is a small set of articles, named and delivered whole by lsfusion_get_guidance: brief says what an area offers, rules states the constraints on using it. The rules map, in the top Rules article, says when reading one of its articles becomes mandatory.
The model
- A class is a set of objects. It types everything else: a property or action is signed by the classes of its parameters.
- A property computes a fact and changes nothing. It is either stored
(
DATA) or calculated from an expression. - An action changes state. Properties say what is true, and actions say how it evolves.
- A form describes objects and the properties shown for them, and the same description serves the interactive view, the printed one and the structured one.
- Changes do not reach the database as they are made. They collect in a
change session until
APPLYwrites them orCANCELdrops them. - A project is composed of modules. How data is stored and made fast is the physical model, and exchange with anything outside is integration.
Three misreadings worth pre-empting, because everything downstream depends on them:
- A class does not map to a table. A table holds property values, and its key fields hold object ids and are typed by the parameter classes of those properties.
- The system modules are a library of ordinary properties and actions, not
built-in language operators. Only
Systemis implicit, and the rest needREQUIREin source modules before their declarations are reachable. An eval module automatically depends on every loaded module. .lsfis not a shell around code in another language. The application — its model, computations, checks, reactions to changes, forms and access rights — is written in these elements. Java and JavaScript enter it only where the platform itself admits them (INTERNAL,EXTERNAL,FORMULA,CUSTOM) and for what those operators are for.
The brief articles — which one to open
Six articles, read whole with lsfusion_get_guidance(brief='<name>'). Match
on either column: the intent describes the task in the user's terms, the
anchors are what the code looks like.
| name | open it when the task is to | language / system anchors |
|---|---|---|
logic | compute, store, change, aggregate, constrain or react to data | CLASS, DATA, =, GROUP, PARTITION, AGGR, <-, NEW, FOR, WHILE, WHEN, <- WHEN, CONSTRAINT, NEWSESSION, APPLY |
view | show data to a person — a form, its layout, a menu, a report — or localize what they read | FORM, OBJECTS, PROPERTIES, FILTERS, SHOW, DIALOG, DESIGN, PRINT, NAVIGATOR, WINDOW, {id} captions |
custom | draw a part of the interface with client code — a container, a component, a field, an object group, a window or the window layout — or call the form or navigator controller | custom, CUSTOM, React, props.data, props.controller, CUSTOMS, render / edit functions, client JavaScript modules |
physical | control storage or speed, organize modules, extend or generate declarations, or rename something that already exists | TABLE, MATERIALIZED, INDEX, MODULE, REQUIRE, NAMESPACE, EXTEND, META, @, migration.script |
integration | move data in or out, or let another system call in | IMPORT, EXPORT, JSON FROM, EXTERNAL, INTERNAL, FORMULA, HTTP endpoints |
operation | configure or administer a running system: user preferences, saved form customization, access, scheduled tasks, backups or diagnosis | EVAL, APPLY, dataExtendCode, Service, Security, Scheduler, Backup, ProcessMonitor, Profiler, Chat |
Where they overlap — read both:
- a form event (
ONinside aFORM) islogicfor what it does andviewfor where it lives; - import or export of a FORM is
integrationfor the exchange andviewfor the form it goes through; - a custom view is
viewfor the form or navigator it belongs to andcustomfor what the client code draws, receives and calls; - a
MATERIALIZEDproperty islogicfor what it computes andphysicalfor what that costs; - extending an element is
physicalfor the mechanism and the area of the extended element for the meaning.
Access kinds
The first answer carries the caller's kind chain, ancestor first. The skills plugin connects as dev; the with=skills it also sends does not change the answer.
Read an article by name with lsfusion_get_guidance(brief='<name>'); the rules map governs supplemental reading.
| name | extends | covers |
|---|---|---|
via_dev | none | source development, code checks and lsFusion skills |
via_idedev | via_dev | IntelliJ project search, diagnostics and metacode visibility |
via_app | none | deployed source, live execution and saved form customization |
via_webapp | via_app | page tools, the user's session and recreating forms |
Mini map for AI
CLASS→ object type (a set of objects).= DATAor=expression → property.{ ... }without=→ action (imperative).FORM→ UI / query / report definition.SHOW / DIALOG / PRINT→ open or print a form.EXPORT / IMPORT→ external formats for properties and forms.GROUP / PARTITION→ value aggregates.GROUP AGGR / AGGR→ aggregated objects.NEWSESSION / APPLY / canceled()→ session control.EXTEND / ABSTRACT / += / +{→ extension and polymorphism points.WHEN,<- WHEN→ events on a data change;ONinside aFORM→ a form event.Utils/Time/System/Authentication→ system modules: string, number and date functions,currentUser,currentDatelive there.