Modeling Guide for SAP Data Hub

The Node.js Subengine SDK

The Node.js subengine consists of two major building blocks: the Node.js subengine core and the Node.js Subengine SDK. While you probably never work directly with the core engine, you will work with the Node.js Subengine SDK all the time to develop your operators.

The Node.js subengine SDK is a Node.js module named '@sap/vflow-sub-node-sdk'. The purpose of it is to simplify the development of Node.js operators. It allows easy access to:
  • the in and out ports defined in the operator.json

  • static operator configuration defined in the operator.json

  • additional ports added directly in the SAP Data Hub Modeler

  • dynamic configuration added directly in the SAP Data Hub Modeler

  • a system-logging API to send status information about the operator

The SDK also supports a shutdown hook for the operator. This allows to cleanup resources if necessary like closing files or logging out from remote systems before terminating the operator.