GetTasksByStationUseCase queries all preparation tasks assigned to a specific kitchen station (BAR, HOT_KITCHEN, or COLD_KITCHEN).
Input Port
The use case implements theGetTasksByStationPort interface:
Implementation
GetTasksByStationUseCase.java
Use Case Flow
Query Repository
Invoke
taskRepository.findByStation(station) to retrieve all tasks for the specified station.Station Types
The kitchen has three stations:Example Usage
Use Cases
Station Dashboard
Display pending and in-progress tasks for a specific station’s UI
Load Balancing
Monitor workload distribution across different stations
Priority Management
Identify which tasks should be started next at each station
Performance Tracking
Analyze task completion rates by station
Filtering by Status
This use case returns all tasks for a station regardless of status. If you need to filter by status (e.g., only PENDING tasks), you can filter the returned list:
Dependencies
TaskRepository
Persistence port that provides
findByStation(Station) query method