Please report issues and contribute improvements on GitHub!

Template demandforecast@0.11.1

Clause ^0.12.0 b1417bca5be49542b4db4821c61f85bc10b6607fcd98bc0f7fb4eea30f04d1db

A sample demandforecast clause.

Download Archive Open in Template Studio

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": "02bd103b-13bf-4dbb-bab2-f165c7adb477",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02",
    "minimumPercentage": 85

State Types

Type Sample JSON
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "8e434c40-60ab-11e9-ba69-a3cec1fc66e2"

Request Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 41.18,
    "transactionId": "8e42fe20-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:55:55.394+00:00"

Response Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 169.85,
    "year": 57020,
    "quarter": 54621,
    "transactionId": "8e432530-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:55:55.395+00:00"

Events Types

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