System Runtime

System Runtime

  • Languages iconENGLISH
    • Română
    • Help Translate
  • SUPPORT
  • GITHUB

›Guides

Introduction

  • What is System Runtime ?
  • System Runtime architecture
  • What is Design First ?
  • Overview

Guides

  • Quick Start
  • How to install System Runtime
  • Design your model
  • Create components
  • Manage your components
  • Bundle your system
  • Extend System Runtime
  • Go deeper

Examples

  • A basic "hello world"
  • Create a bundle
  • Install a bundle client-side
  • Install a bundle in HTML
  • Install a bundle server-side
  • Package a bundle
  • Create a component
  • Create new types
  • Create a one to one relationship
  • Create a one to many relationship
  • Navigate through the model
  • Inheritance between components
  • Listen to a change of state of a component
  • Use System Runtime NoSQL Database
  • Object-Document Mapper in action
  • Use System Runtime core apis
  • Use System Runtime history apis
  • Quick Start example

APIS

  • Component Class
  • runtime Component
  • metamodel Component
  • logger Component
  • db Component
  • history Component
  • Document Collection

About

  • Who is behind System Runtime ?
  • License

Go deeper

Use System Runtime core APIs

If you need more control to System Runtime core components, you can call directly System Runtime core APIs in your code (via Dependency Injection on System Runtime behaviors).

To do do, set the last parameter of on component method to true.

You will have access to:

  • System Runtime component module with $component:
component.on('eventName',  () => {
  const runtime = $component.get('runtime');
}, true);
  • System Runtime database module with $db:
component.on('eventName', () => {
  const result = $db.Person.find({'name': 'laure'}); 
}, true);
  • System Runtime metamodel module with $metamodel:
component.on('eventName', () => {
  const result = $metamodel.getParents('Teacher');
}, true);
  • System Runtime workflow module with $workflow:
component.on('eventName', () => {
  $workflow.process({
    component: 'luke',
    state: 'fullName',
    data: []
  });
}, true);
  • System Runtime behavior module with $behavior:
component.on('eventName', () => {
  const actions = $behavior.getActions('eventName','componentId');
}, true);
  • System Runtime state module with $state:
component.on('eventName', () => {
  const state = $state.get('componentId');
}, true);
  • System Runtime history module with $history:
component.on('eventName', () => {
  $history.start();
}, true);

With great power comes great responsibility

By using System Runtime core apis, you will be able to control the way System Runtime manages your system. You will be able to bypass some contraints and the compliance to your model can be incomplete.

← Extend System RuntimeA basic "hello world" →
  • Use System Runtime core APIs
System Runtime is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou