Define Input

It’s hard to make a good decision without input (or data). For our “What to Bring for the Weather” example, the input will be two numbers: temperature and rain percent forecasts. Let’s set up their definitions.

  1. Click Show data panel Show data panel icon to expand the Input Data pane.
  2. Add a complex type definition for the forecasts.
    1. In the Type Definition section, click Add new item definition Add Input Variable icon.
    2. In the Name field, enter ForecastType.
    3. In the Mode field, select Complex.
    4. Click Add Component next to Define Type Attributes to add two attributes.
    5. For the first attribute, enter Temperature for its name and select Number as its mode. Click Close to return to the Add Type Definition panel.
    6. For the second attribute, enter Precipitation for its name and Number as its mode.
    7. Click Close.
  3. Add an input variable that uses the Forecast type definition you just created.
    1. In the Input Data section, click Add new input data Add new input data icon.
    2. In the Name field, enter Forecast.
    3. In the Mode field, select Other Type.
    4. In the Other Types field, select ForecastType and click Close.
  4. Click Hide data panel Hide data panel icon to collapse the Input Data pane.