1 package com.guinetik.hexafun.examples.tasks;
2
3 /**
4 * Task workflow status for Kanban-style management.
5 */
6 public enum TaskStatus {
7 /** Task is waiting to be started */
8 TODO,
9 /** Task is currently being worked on */
10 DOING,
11 /** Task has been completed */
12 DONE;
13
14 /**
15 * Check if this status represents a completed task.
16 */
17 public boolean isCompleted() {
18 return this == DONE;
19 }
20
21 /**
22 * Check if this status represents an active task.
23 */
24 public boolean isActive() {
25 return this == DOING;
26 }
27 }