# Recipe: a queue-based process with REFramework

> Build a REFramework process that pulls items from an Orchestrator queue, with retries, logging, and exception handling.

Build a transactional process from the Robotic Enterprise Framework (REFramework) template that processes Orchestrator queue items.

## Prerequisites

- [Install and set up](install-and-set-up.md) complete, and you are signed in.
- An Orchestrator queue with at least 2 sample items, or a request for the agent to create one.

## Process items from a queue

1. Open your coding agent in an empty project folder.
2. Describe the task and name the template:

   "Create a new RPA project from the REFramework template that processes items from the `Invoices` queue in Orchestrator. For each item, read the invoice fields, post them to our finance system, set the transaction status, and retry on failure."

3. Review the Init, Get Transaction Data, Process Transaction, and End Process states, and the configuration file in the `Data` folder.
4. Ask the agent to add the business logic to Process Transaction.
5. Set the queue, retry count, and assets without hard-coding them:
   - `Config.json` project: retry count in `Config.json`, queue on **Get Transaction Item** in `Framework\GetTransactionData.xaml`, assets through **Get Asset** or **Get Credential**.
   - `Config.xlsx` project: all three in `Config.xlsx`.
6. Ask the agent to run the Workflow Analyzer and a single test transaction.
7. Confirm the processed item moved to the expected status: Successful, Failed, or Retried. Untouched items stay New.
8. Confirm exceptions are logged.
