Please report issues and contribute improvements on GitHub!

Template eat-apples@0.6.0

Clause Ergo ^0.10.0 4ee80284eca4230600641b83ea419fd2ea437e418dd2145340f8322397046151

This is a clause enforcing healthy eating habits in employees.

Download Archive Open in Template Studio

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": "1163e1c2-4aa1-40d0-a939-fe6ed3a5b443",
    "employee": "Dan",
    "company": "ACME",
    "tax": 4.5
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "df4c9aa2-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.canteen.Food
{
    "$class": "org.accordproject.canteen.Food",
    "produce": "Irure ut ea aliquip proident.",
    "price": 195.914,
    "transactionId": "df4c9aa0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:49.066Z"
}

Response Types

Type Sample JSON
org.accordproject.canteen.Outcome
{
    "$class": "org.accordproject.canteen.Outcome",
    "notice": "Nostrud cillum.",
    "transactionId": "df4c9aa1-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:49.066Z"
}

Events Types

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