Skip to content

The editor

The views pack's Artekis/Admin/ContextModel view (/artekis/admin/context-model, admin level) edits each collection's model: the collection fields and alarm scope, the asset tree with each asset's tags, alarms, rules, documents and State (its run, product and changeover signals, section 7.5), the relations, and the coverage grid and to-do list; or the whole model as JSON. A save is the whole model with the revision it was read at: another editor's save in between makes yours stale (reload). A save is refused, with the field path, for an unknown key, a wrong type, a missing or duplicate asset id, an unknown parent or relation endpoint, a parent cycle, normal.min above normal.max, or an alarm not written <tag path>|<alarm>; a tag, alarm, project or document the gateway does not hold is only a warning. A tag with a source (section 7.7) is also refused when the gateway cannot read that source.

Three things to know before the first save:

  • An asset id cannot change once saved. Findings reference it. Rename an asset with name; a save that drops an id a stored finding references is refused with the count. While the Artekis database cannot be read, dropping any asset id is refused.
  • There is no delete for a whole model: remove the collection's resource folder from the gateway's config/resources/core/com.artek.artekis/context-model/ and trigger a config scan, knowing its findings keep the id.
  • The editor needs a project identity provider for its admin-level check, as verdicts do.