Eat Apples!
This is a clause enforcing healthy eating habits in employees.
This is a clause enforcing healthy eating habits in employees.
This is a clause enforcing healthy eating habits in employees.
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.
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.
Eating healthy clause between {{employee}} (the Employee) and {{company}} (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 {{tax}}% tax.
{
"$class": "org.accordproject.canteen.CanteenClause",
"employee": "Dan",
"company": "ACME",
"tax": 4.5,
"clauseId": "43f03a86-9108-4f2e-ac12-c2e8dd313f54",
"$identifier": "43f03a86-9108-4f2e-ac12-c2e8dd313f54"
}
namespace org.accordproject.canteen
import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
import org.accordproject.runtime.* from https://models.accordproject.org/accordproject/runtime.cto
transaction Food {
o String produce
o Double price
}
transaction Outcome {
o String notice
}
event Bill {
o String billTo
o Double amount
}
asset CanteenClause extends Clause {
o String employee
o String company
o Double tax
}
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.runtime.State |
|
Type | Sample JSON |
---|---|
org.accordproject.canteen.Food |
|
Type | Sample JSON |
---|---|
org.accordproject.canteen.Outcome |
|
Type | Sample JSON |
---|---|
concerto.Event |
|
Please refer to the Accord Project documentation for how to use a template or integrate it within your application.
View the Latest code for this template on GitHub.