Ravi Sir's Cards › AWS
Task, Choice, Wait, Parallel
This revision card explains Task, Choice, Wait, Parallel. It starts from the need that wrong state type makes the workflow hang or skip business rules. It describes task = do work (Lambda). Choice = if/else. Wait = pause. Parallel = run branches together. Fail/Succeed end the run. The how-to section notes map a happy path with Task + Choice; add Wait for human or timer; use Parallel only when branches are independent. An example on the card is choice on $.status == APPROVED goes to disburse Task; else goes to reject Succeed.
Read card text
What this card says
Why do we need it?
Wrong state type makes the workflow hang or skip business rules.
What is it?
Task = do work (Lambda). Choice = if/else. Wait = pause. Parallel = run branches together. Fail/Succeed end the run.
Task / Choice
How to do it
Map a happy path with Task + Choice; add Wait for human or timer; use Parallel only when branches are independent.
Example
Choice on $.status == APPROVED goes to disburse Task; else goes to reject Succeed.