Skip to content

Suspend Resume

shyamakirala edited this page Feb 23, 2016 · 5 revisions

Suspend/Resume: Consider a scenario where an user is getting created/registered in a system. The following steps will be carried out to create a user.

  1. Provide User details to system
  2. Validate User details
  3. The details would be sent to Admin for approval
  4. User would be created upon manual approval of Admin

This can be modelled using Flux. After getting and validating user details, a notification will be sent to Admin for approval, and the workflow will be suspended until Admin does an action. Once the admin approves the creation manually, an event will be raised which will resume the workflow.

The above scenario can be illustrated by below diagram.

Clone this wiki locally