- Navigate to the workspace "pjstips".
- Click New/Module File.
- Enter the code below. Click Save As, and save as pjstips_02_1.js.
Click Edit/Source, to bring up the Source view.
- Clear the current code, and enter the code below.
- Click Edit/Design, to bring up the Design view.
- Click Home/Save As, and save as pjstips_03_1.module.json.
- You've created a low-code module, as shown below, with routine "routine1" that:
- Takes an "input" object, with a property/value for "custno".
- Uses plug "Consume REST service" to issue a POST request to URL http://localhost:8081/run/pjstips/pjstips_02_3 (created in a previous example).
- The input "custno" is specified in the "body" of the POST request.
- The returned JSON object is saved in a work variable named "myres".
- The value of myres["name"] is used to set the output value output["name"].
Skip to end of banner
Go to start of banner
Tip 3: how to call a low-code module from an RPG program
General
Content
Integrations