Escalation timer demo -- auto-approve after timeout using a WAIT task and external escalation checker.
Input: requestId, autoApproveAfterMs | Timeout: 300s
Output: decision, method
et_submit
│
approval_wait [WAIT]
│
et_process
ProcessWorker (et_process): Worker for et_process -- processes the approval decision.
Reads decision, method. Outputs processed.
SubmitWorker (et_submit): Worker for et_submit -- submits a request for approval.
Reads requestId. Outputs submitted.
decision:${wait_ref.output.decision}method:${wait_ref.output.method}
et_submit: requestId = ${workflow.input.requestId}
et_process: decision = ${wait_ref.output.decision}, method = ${wait_ref.output.method}
17 tests cover valid inputs, boundary values, null handling, and error paths.
mvn testRun this example: see RUNNING.md for setup, build, and CLI instructions.