25.1.9 Getting Approval or User Input in a Workflow

Wait for user approval or input by creating a task or sending a notification.

Your workflow runs the steps in a business process. Sometimes, it needs input from a user. They might need to confirm a manual task, approve or reject something, or enter data so the workflow can proceed. The user needs a page where they can see what’s needed and enter their response. But workflows run in the background where there’s no "current user" to show a page to. Instead, use one of these familiar patterns:
  • Create a work item in a to-do list the user checks periodically.
  • Send the user a push notification or email, and wait for them to act on it.

Either way, the user clicks a link, opens a page, and provides their input. The workflow waits in the background. It moves on only after the user responds, whether that’s in a few minutes or a few days.