Fork me on GitHub

Template demandforecast@0.8.0

Clause Ergo ^0.9.1 c7b8a7ac155628f9b4cfe40abffbd4991fc2b98183d31a795505fa24a2b1f346

A sample demandforecast clause.

Download Archive Open in Template Studio

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": "08d9edad-ea32-4b9f-b2f9-6142e458cbfc",
    "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": "7755d4b0-e9bb-11e8-acc3-efb7a931ee24"
}

Request Types

Type Sample JSON
org.accordproject.demandforecast.ForecastRequest
{
    "$class": "org.accordproject.demandforecast.ForecastRequest",
    "supplyForecast": 76.444,
    "transactionId": "7755ada0-e9bb-11e8-acc3-efb7a931ee24",
    "timestamp": "2018-11-16T16:20:00.506Z"
}

Response Types

Type Sample JSON
org.accordproject.demandforecast.BindingResponse
{
    "$class": "org.accordproject.demandforecast.BindingResponse",
    "requiredPurchase": 43.63,
    "year": 5531,
    "quarter": 53256,
    "transactionId": "7755ada1-e9bb-11e8-acc3-efb7a931ee24",
    "timestamp": "2018-11-16T16:20:00.506Z"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}