Fork me on GitHub

Template demandforecast@0.2.0

Clause Ergo ^0.4.4 7a296780f660425cad265022e225bf871fd6d2d60f04d75ee3c0e7d82cea56f7

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": "aa6f061b-498b-47df-959c-1320ab8751a8",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02",
    "minimumPercentage": 85

State Types

Type Sample JSON
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "9558a6c0-795b-11e8-9e1a-f1b99981beac"

Request Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 44134,
    "transactionId": "955858a0-795b-11e8-9e1a-f1b99981beac",
    "timestamp": "2018-06-26T16:11:28.938Z"

Response Types

Type Sample JSON
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 73.663,
    "year": 61574,
    "quarter": 59333,
    "transactionId": "95587fb0-795b-11e8-9e1a-f1b99981beac",
    "timestamp": "2018-06-26T16:11:28.939Z"

Events Types

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