Template eat-apples@0.8.1

Clause ^0.12.0 7ae7945c6db42efb1aa00994c51d557d3eb7a7f492f17ff154f7f00130e11fef

This is a clause enforcing healthy eating habits in employees.

Download Archive Open in Template Studio Open in VSCode Web

Eat Apples!

This is a clause enforcing healthy eating habits in employees.

Sample

            Eating healthy clause between "Dan" (the Employee) and "ACME" (the Company). The canteen only sells apple products. Apples, apple juice, apple flapjacks, toffee apples. Employee gets fired if caught eating anything without apples in it. THE EMPLOYEE, IF ALLERGIC TO APPLES, SHALL ALWAYS BE HUNGRY. Apple products at the canteen are subject to a 4.5% tax.
          

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.canteen.CanteenClause",
    "clauseId": "65f3f05b-3a41-4976-9b23-1fb9217cf6a3",
    "employee": "Dan",
    "company": "ACME",
    "tax": 4.5
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "1b8ad140-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.canteen.Food
{
    "$class": "org.accordproject.canteen.Food",
    "produce": "Quis velit.",
    "price": 162.797,
    "transactionId": "1b8aaa30-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:23.443-04:00"
}

Response Types

Type Sample JSON
org.accordproject.canteen.Outcome
{
    "$class": "org.accordproject.canteen.Outcome",
    "notice": "Labore quis.",
    "transactionId": "1b8aaa31-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:23.443-04:00"
}

Events Types

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