# ST-DBP-027 - Persistence Best Practice

> **Rule ID**: `ST-DBP-027`

**Rule ID**: `ST-DBP-027`

**Scope**: Workflow

## Description

The rule checks whether the following persistence activities are used inside the [For Each](https://docs.uipath.com/activities/docs/for-each) activity:

* [Resume after Delay](https://docs.uipath.com/activities/docs/resume-after-delay)
* [Wait for External Task and Resume](https://docs.uipath.com/activities/docs/wait-for-external-task-and-resume)
* [Wait for Form Task and Resume](https://docs.uipath.com/activities/docs/wait-for-form-task-and-resume)
* [Wait for Job and Resume](https://docs.uipath.com/activities/docs/wait-for-job-and-resume)
* [Wait for Queue Item and Resume](https://docs.uipath.com/activities/docs/wait-for-queue-item-and-resume)

## Recommendation

Do not add **Wait... and Resume** persistence activities inside the For Each activity.

  ![docs image](https://dev-assets.cms.uipath.com/assets/images/studio/studio-docs-image-168177-d8830cd5.webp)
