You can model a lightweight team task planner in MDriven Designer with projects, tasks, members, progress tracking, and automated business logic.
What you will build[edit source]
The planner includes projects, tasks, and members. It supports creating projects, managing team members, adding tasks, tracking tasks, calculating project progress automatically, and enforcing validation rules.
Step 1: Create the domain model[edit source]
Create the core classes needed for the planner.
Add associations so that:
- A
Projecthas manyTaskobjects.
Step 2: Add attributes[edit source]
Add the following attributes.
| Class | Attribute | Type |
|---|---|---|
| Project | Name
|
String |
| Project | Deadline
|
Date |
| Member | Name
|
String |
| Member | Email
|
String |
Step 3: Add derived task counts with OCL[edit source]
Add derived attributes to Project to calculate task counts.
Total tasks[edit source]
Create a derived attribute named TotalTasks:
self.tasks->sizeThe source then introduces calculating overall project progress, but the supplied text does not include the expression or remaining steps.
