System Runtime

System Runtime

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

›APIS

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

history Component

back() : number

  • Description: Go back to the history of modifications made to the system. It returns the index of the current history stack.
  • Schema: _History
  • Inherit: _Component
const currentIndex = runtime.require('history').back();

clear()

  • Description: Clear the history.
  • Schema: _History
  • Inherit: _Component
runtime.require('history').clear();

dump( ) : string

  • Description: Export all the modifications made to the system.
  • Schema: _History
  • Inherit: _Component
const dump = runtime.require('history').dump();

get( index ) : object

  • Description: Get one item of the history stack.
  • Schema: _History
  • Inherit: _Component
const item = runtime.require('history').get(-1);

forward() : number

  • Description: Go forward to the history of modifications made to the system. It returns the index of the current history stack.
  • Schema: _History
  • Inherit: _Component
const currentIndex = runtime.require('history').back();

from( index )

  • Description: Start the index to go back/forward in the history at the correct value. If index is -1, we start from the last modification made to the system.
  • Schema: _History
  • Inherit: _Component
runtime.require('history').from(-1);

load( dump ) : boolean

  • Description: Load an historization and apply the modifications to the current system. It returns true if the dump has been loaded without error.
  • Schema: _History
  • Inherit: _Component
const dump = runtime.require('history').dump();
const success = runtime.require('history').load(dump);

start( )

  • Description: Start the historization of modifications made to the system.
  • Schema: _History
  • Inherit: _Component
runtime.require('history').start();

stop( )

  • Description: Stop the historization of modifications made to the system.
  • Schema: _History
  • Inherit: _Component
runtime.require('history').start();
← db ComponentDocument Collection →
  • back() : number
  • clear()
  • dump( ) : string
  • get( index ) : object
  • forward() : number
  • from( index )
  • load( dump ) : boolean
  • start( )
  • stop( )
System Runtime is distributed under Apache License 2.0 - Copyright © 2024 Erwan Carriou