Running a Function

Overview

You can use the Cantara Administration Console to run a function that exists in your JDE environment.

The following details are returned when you run a function:

  • Function Request: The payload that the Cantara RESTful service consumes. You can use the information produced here as a template for inclusion in your own service client.

  • Function Response: The data that the JDE server returns.

  • JDE Transaction: The data that is being transmitted between the Cantara Server and the JDE server.

Procedure

Running a Function 1.png

To run a function:

  1. Navigate to Functions. 

A list of functions is displayed.

Running a Funtion 2.png


  1. Select the function to be tested. The Function settings screen is displayed

  2. Ensure that the proper environment is selected to run the function. 

Running a Function 3.png


  1. Click Actions, then select Execute.


Running a Function 4.png

The Execute Cantara Component screen will be displayed. The Component Request window will be pre-loaded with the input parameters in JSON format:


Running a Function 5.png


  • You can click in the Component Request window to enter in parameter values. In the example above WO number 1004 in the mnWorkOrderNumber parameter has been entered.

Running a Function update 1.png


  • Enable Structured Request, to display the parameters in an “object/property” based JSON.  This format makes it easier to copy/paste input data to run the function. 

Running a Function update 2.png


  1. Click Execute to run the function.  The windows on the right will display the Component and JDE Response received from the AIS server: