Template demandforecast@0.12.0

Clause ^0.13.0 f871c3577947fb9eeecf076aac6fcdf0ae587c4b577f994555c1c68e36050f57

A sample demandforecast clause.

Download Archive Open in Template Studio Open in VSCode Web

Demand Forecast

A sample demand forecast clause.


            On or before the 04/02/2018, and thereafter on or before the last day of each calendar quarter, the Purchaser "PETER" shall send the Supplier "DAN" a Supply Forecast. The Supply Forecast will be a binding commitment on the Purchaser’s behalf to purchase during the first quarter included in each Supply Forecast at least 85% of the quantity of the listed Product.


Model Dependencies

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on on GitHub.

Sample Instance

    "$class": "org.accordproject.demandforecast.DemandForecastClause",
    "clauseId": "7d04ed62-04bc-4dea-b007-75c5b324f612",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02T00:00:00.000-04:00",
    "minimumPercentage": 85

State Types

Type Sample JSON
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "6ff2cd10-9cce-11e9-9a6f-d5f6456622aa"

Request Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 122.404,
    "transactionId": "6ff2a600-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:46.688-04:00"

Response Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 79.233,
    "year": 26023,
    "quarter": 19951,
    "transactionId": "6ff2a601-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:46.688-04:00"

Events Types

Type Sample JSON
    "abstract": "this is an abstract type"