Fork me on GitHub

Template demandforecast@0.5.0

Clause Ergo ^0.6.0 bc8d1d755c48a3052359b54686ffc8d7b7d45784bb51b38449dabd171390136b

A sample demandforecast clause.

Download Archive

Demand Forecast

A sample demand forecast clause.

Sample

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": "a1316f80-5502-440b-a406-9218c783c78d",
    "purchaser": "PETER",
    "supplier": "DAN",
    "effectiveDate": "2018-04-02",
    "minimumPercentage": 85
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "d6890210-a157-11e8-bed5-15302d68d0b1"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 49063,
    "transactionId": "d688db00-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:26.832Z"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 147.456,
    "year": 13687,
    "quarter": 12252,
    "transactionId": "d688db01-a157-11e8-bed5-15302d68d0b1",
    "timestamp": "2018-08-16T13:25:26.833Z"
}

Events Types

Type Sample JSON
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}