# ➕ AddToQueue

### 📌 Purpose

The AddToProcess workflow transfers the data to be processed into the queue structure. At this stage, the records that have been loaded and made ready for processing are added to the queue according to the defined rules. In addition, duplicate record checks, data validation and logging of the queue adding results are performed. This ensures that robots process the work records in a controlled, ordered and traceable way.

### 📥 Input

| **Parameter** | **Description** |
|-----------|-------------|
| StartTime | Start time  |
| ManuelLoadData | Manual data loading |
| AddToProcessName | Name of the process the works will be added to |
| UniqueControl | Unique control |
| UniqueIncludeIdle | Include idle works in the unique control |
| UniqueIncludeCompleted | Include completed works in the unique control |
| UniqueIncludeFailed | Include failed works in the unique control |
| UniqueIncludeDisabled | Include disabled works in the unique control |
| UniqueIncludeExpired | Include expired works in the unique control |
| UniqueControlDay | Number of days the unique control covers |
| Config    | Configuration |
| AddWorkUniqueFieldName | Unique control field |
| ProcessName | Process name |

### ⚙️ Responsibilities

* Retrieves the data from the source
* Turns each record into a queue item
* Can perform a duplicate check
* Performs bulk insert operations