Offer management with SWITCH for accept/decline.
Input: candidateName, position, salary, response | Timeout: 60s
ofm_generate
│
ofm_approve
│
ofm_send
│
offer_response [SWITCH]
├─ accept: ofm_accept
└─ decline: ofm_decline
AcceptWorker (ofm_accept)
Reads candidateName. Outputs accepted, startDate.
ApproveWorker (ofm_approve)
Reads offerId. Outputs approved, approvers.
DeclineWorker (ofm_decline)
Reads candidateName. Outputs declined, reason.
GenerateWorker (ofm_generate)
Reads candidateName, position, salary. Outputs offerId, generated.
SendWorker (ofm_send)
Reads candidateName. Outputs sent, expiresIn.
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.