Modeling Guide for SAP Data Hub

Using the SAP Data Hub Modeler UI

In this section, we explain how to customize the behavior of Node.js operators in the SAP Data Hub user interface. This is recommended if you want to create simple scripts in a quick way.

There are two ways to personalize the behavior of a Node.js operator:
  • Drag out the Node.js Script Operator to the graph canvas and then right-click on it to open the script editor.

  • Create a new operator in the Repository tab and select Node.js Base Operator as the base operator to be extended. The advantage of the second approach is that you can reuse your new operator across many graphs, while in the first approach, the edited script will be specific to the given graph and operator instance.

    In more detail, the second approach can be achieved by opening the Repository tab and expanding the Operators section. You can right-click in any subfolder of Operators to create your operator under it. Then click Create Operator. A dialog will open and ask for the operator name, display name, and base operator. Fill in the fields and choose Node.js Base Operator as the base operator. Then, in the Operator Editor view, you will be able to create input ports, output ports, tags, configuration parameters, and write your script.