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
-
Log in to SAP Data Hub System Management as a cluster administrator
-
Click on Files and then choose Union
View
-
On the union view, navigate to
vflow/subengines/com/sap/node
-
Right-click on file vflow-sub-node-sdk.tar.gz and choose
Export File
-
Export the file to your local Node.js project. Save it into an appropriate
location inside your project.
-
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
-
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",
…
}
}