Modeling Guide for SAP Data Hub

Develop a Node.js Operator

This section explains how to create Node.js operators outside the Modeler application by using a dedicated Node.js project.

Context

Download the SDK from a SAP Datahub System:

Procedure

  1. Log in to SAP Data Hub System Management as a cluster administrator
  2. Click on Files and then choose Union View
  3. On the union view, navigate to vflow/subengines/com/sap/node
  4. Right-click on file vflow-sub-node-sdk.tar.gz and choose Export File
  5. Export the file to your local Node.js project. Save it into an appropriate location inside your project.
  6. To make the SDK available to your JavaScript code, install it using the Node.js package manager:
    npm install --save [path_to]/vflow-sub-node-sdk.tar.gz
  7. Finally check whether the (runtime-) dependency is added to your package.json. It should look similar to this:
    {
    	"name": …,
    	"version": …,
    	"dependencies": {
    		"@sap/vflow-sub-node-sdk": "file:vflow-sub-node-sdk.tar.gz",
    		…
    	}
    }