Fork me on GitHub

Template demandforecast@0.6.0

Clause Ergo ^0.7.1 08787ec5738dffe4af79cd11136e782432841635e1e5d7c82c9bcce912a03c24

A sample demandforecast clause.

Download Archive

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": "cee0f02b-16c8-4b3b-8f85-df425b9bfdc6",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02",
    "minimumPercentage": 85

State Types

Type Sample JSON
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "6dfc3a71-ac5e-11e8-ae05-7b30d9585bc6"

Request Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 26921,
    "transactionId": "6dfc1360-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:20.694Z"

Response Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 86.216,
    "year": 31262,
    "quarter": 7529,
    "transactionId": "6dfc3a70-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:20.695Z"

Events Types

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