Benefits enrollment workflow: present options, select, validate, enroll, confirm.
Input: employeeId, enrollmentPeriod | Timeout: 60s
ben_present
│
ben_select
│
ben_validate
│
ben_enroll
│
ben_confirm
ConfirmWorker (ben_confirm)
Reads enrollmentId. Outputs confirmed, cardsMailed.
EnrollWorker (ben_enroll)
Reads employeeId. Outputs enrollmentId, monthlyPremium, effectiveDate.
PresentWorker (ben_present)
Reads employeeId. Outputs options.
SelectWorker (ben_select)
Outputs selections.
ValidateWorker (ben_validate)
Reads selections. Outputs validSelections, valid.
10 tests cover valid inputs, boundary values, null handling, and error paths.
mvn testRun this example: see RUNNING.md for setup, build, and CLI instructions.