Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.
Richard Szolár edited this page Aug 4, 2019 · 2 revisions

A little introduction to the tables and what they do can be found here. There may be things that are not straightforward, so that is why I will try to explain this as simply as I can.

At the moment, there are two tables present in the Scoped App

  • x_321937_snc_node_bridge_scripts => Bridge Scripts
  • x_321937_snc_node_execution_log => Execution Log

Bridge Scripts

This table will contain our custom made scripts that can be sent to the NodeJS instance and get results back. There are 3 fields: Name, Script and Native.

The fields Name and Script are quite straightforward. You set a name, for you to be able to more easily find your scripts later on, Script will be the main script that you want to execute on the NodeJS instance. Lastly, the Native is a True/False field, this specifies if the current script is a Vanilla Javascript (Native=true) or a NodeJS style (Native=false) script. So if you will write something that would require NodeJS style functions, like require or maybe import then you would need to set the Native to false, for it to be run in the correct enviroment.

See samples for basic sample scripts, so you get an idea how a script would look :).

Execution Log

The Execution Log will contain logs for the executed scripts. At the moment it contains 5 Fields that are important from our perspective: Bridge Script, Executed script, Result, Response.

Bridge Script is a Document ID, references the script that was executed. The Executed Script will contain the script itself. Since the written scripts change through time, this will be useful to debug what has changed since it was working the last time and also provides some insight if we are sending the correct script. The Result will be mostly "success" or "error". The Response will contain the whole response that the script gave which we've previously sent to the NodeJS Instance.

This is for informational purposes only.

Clone this wiki locally