Please report issues and contribute improvements on GitHub!

Template eat-apples@0.7.0

Clause Ergo ^0.11.1 4e6a717ca4fcd9eabf3ee1de0bff58a0b236c0d3162f7282bcdf44e62c67b3a1

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": "db2c4dc0-0311-4614-9991-e4309d4c32ed",
    "employee": "Dan",
    "company": "ACME",
    "tax": 4.5
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "25f9a060-4bae-11e9-8561-af645d56312b"
}

Request Types

Type Sample JSON
org.accordproject.canteen.Food
{
    "$class": "org.accordproject.canteen.Food",
    "produce": "Commodo.",
    "price": 77.104,
    "transactionId": "25f90420-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:34.498+00:00"
}

Response Types

Type Sample JSON
org.accordproject.canteen.Outcome
{
    "$class": "org.accordproject.canteen.Outcome",
    "notice": "Enim aliqua culpa nostrud.",
    "transactionId": "25f97950-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:34.501+00:00"
}

Events Types

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