Introduction to RASON
About RASON Models and the RASON Server
Rason Subscriptions
Rason Web IDE
Creating and Running a Decision Flow
Defining Your Optimization Model
Defining Your Simulation Model
Performing Sensitivity Analysis
Defining Your Stochastic Optimization Model
Defining Your Data Science Model
Defining Custom Types
Defining Custom Functions
Defining Your Decision Table
Defining Contexts
Using the REST API
REST API Quick Call Endpoints
REST API Endpoints
Decision Flow REST API Endpoints
OData Endpoints
OData Service for Decision Flows
Creating Your Own Application
Using Arrays, For, Loops and Tables
Organization Accounts

OData Service Example

Find the example workflow below with two disconnected SQL Transformation stages. This example uses two tables, customers_dt and orders and returns them unmodified from [customers]/[orders]. The input file customers.txt is included in the RASON Examples Download file as explained within the section, Uploading Data from an External Data File within the chapter, Using the RASON Services Web IDE.

  
    {
      "workflow": "sqlWorkflow",
      "customers": {
        "comment": "transformation: SQL",
        "datasources": {
          "srcCustomers": {
            "type": "csv",
            "connection": "customers_dt.txt"
          }
        },
        "datasets": {
          "customers": {
            "binding": "srcCustomers",
            "colNames": [ "CustomerID", "Country", "Age" ],
            "indexCols": ["CustomerID"]
          }
      },
      "transformer": {
        "mySQLTransformer": {
          "type": "transformation",
          "algorithm": "sql",
          "parameters": {
            "query": "SELECT * FROM [customers];"
          }
        }
      },
      "actions": {
        "result": {
          "action": "transform",
          "evaluations": [ "transformation" ]
        }
      }
    },
    "orders": {
      "comment": "transformation: SQL",
      "datasources": {
        "srcOrders": {
          "type": "csv",
          "connection": "orders.txt"
        }
      },
    "datasets": {
      "orders": {
        "binding": "srcOrders",
        "colNames": [ "OrderID", "CustomerID", "Price", "Quantity" ],
        "indexCols": ["OrderID", "CustomerID"]
      }
    },
    "transformer": {
      "mySQLTransformer": {
        "type": "transformation",
        "algorithm": "sql",
        "parameters": {
          "query": "SELECT * FROM [orders];"
        }
      }
    },
    "actions": {
      "result": {
        "action": "transform",
          "evaluations": [ "transformation" ]
        }
      }
    }
   }
  
Back to Odata Service Introduction