Fork me on GitHub

Template demandforecast@0.4.0

Clause Ergo ^0.5.0 9e5c858fe5bd3bbd10a09afc789bd43af0ae467947b0a3cd088592f7c37bddd5

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": "9109549b-936c-4c7e-9db5-dd103c041303",
    "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": "f0fc2c20-966d-11e8-91eb-632e912d28eb"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 62269,
    "transactionId": "f0fbb6f0-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:57.343Z"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 122.429,
    "year": 23658,
    "quarter": 33995,
    "transactionId": "f0fc0510-966d-11e8-91eb-632e912d28eb",
    "timestamp": "2018-08-02T16:05:57.345Z"
}

Events Types

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