This example models a sequential task tracking tool with each step represented by a template. A party creates a task and proposes assignment to another party. The receiving party can accept or redirect the assignment. An assigned task can then be started and the start time is recorded. The started task can then be completed, recording the end time of the task. Completed tasks can be deleted by the assigned person.
- The creator creates a
NewTask
. - The creator
Assign
s the task to the assignee, creating aTaskAssignmentProposal
. - The assignee can
Accept
s the proposal which creates anAssignedTask
. - The assignee can then
Start
the assigned task, recording the start time of the task. - The assignee then
Complete
s the started task, recording the end time of the task. - Finally, the assignee can
Delete
the completed task removing it from the ledger.
To compile the project:
daml build
To test all scenarios:
daml test --color
To load the project into the sandbox and start navigator:
daml start