Sleep

The Sleep action puts the computer on which the bot is running in sleep mode. Sleep mode moves open applications and documents to the computer's RAM, then reduces power to the display and hard disk drive, allowing the computer to resume normal operation quickly, usually within seconds.

Note: The Actions Quick Reference provides a complete list of actions that you can print for easy reference.

Create a Sleep action

  1. In Nintex Bot, on the Actions list, click Computer and select Sleep.

  2. Select your options:

    • Force Sleep: If you select this option, the bot will move into suspended mode immediately. If you do not select this option, Windows will send a suspend request to every application. If an application does not respond to a suspend request within 20 seconds, Windows determines that it is in a non-responsive state and the application can either be put to sleep or terminated. After an application responds to a suspend request, however, it can take whatever time it needs to clean up resources and shut down active processes.

    • Only sleep if running: If you select this option, a placeholder message is displayed where the action would have normally been executed if the script was run using the Run button in Run Bar (not if the action was executed by being double-clicked or clicking the Execute button). If you do not select this option, the action will execute and put the machine in sleep mode. When the user logs in again, they will see a message stating that the script has been stopped.

  3. If needed, adjust the Run error task settings to fine tune how the action runs.

    • Run error task: A botflow containing an error task automatically runs the error task in the event of an error. If the botflow does not contain an error task, the botflow stops in the event of an error.
    • Stop on error: The botflow stops in the event of an error.
    • Ignore errors: The action is skipped in the event of an error and the botflow attempts to execute the next action.
  4. (Optional) Add a Note to document special instructions or functionality.

  5. Toggle the run switch to Run and click OK to execute and save the action.

  6. Note: The run switch is set to Run by default. To create or modify this action without executing it, click the slider to change the option to Don't Run.  For more information, go to Action Builder.