Fork me on GitHub

Template eat-apples@0.5.0

Clause Ergo ^0.9.1 31142713101ba0267a8582ce24f830fd971152fef1d75e32cc804000b2bf14e4

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": "8df2a1da-d4a7-4ae4-94eb-3d1365d89563",
    "employee": "Dan",
    "company": "ACME",
    "tax": 4.5
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "5bdc6a12-dd3f-11e8-a95c-95b9dbcf241c"
}

Request Types

Type Sample JSON
org.accordproject.canteen.Food
{
    "$class": "org.accordproject.canteen.Food",
    "produce": "Quis.",
    "price": 233.277,
    "transactionId": "5bdc6a10-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:22.865Z"
}

Response Types

Type Sample JSON
org.accordproject.canteen.Outcome
{
    "$class": "org.accordproject.canteen.Outcome",
    "notice": "Cillum ad sint.",
    "transactionId": "5bdc6a11-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:22.865Z"
}

Events Types

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