---
title: "Claim bill queue — next bill"
summary: Operation implemented by ClaimBillEntryRepository.GetNextClaimBillFromQueue
status: draft
owner: SAIF.Core documentation team
last_reviewed: 2026-09-24
library: SAIF.Data.NHibernate
reference_type: package
operation_id: "OP-SDN-01"
trigger: "See steps below"
---


# Claim bill queue — next bill

Claim bill queue — next bill is implemented by `ClaimBillEntryRepository.GetNextClaimBillFromQueue` and is documented as OP-SDN-01 in the Stage 1 analysis.

| Field | Value |
| --- | --- |
| **Operation ID** | OP-SDN-01 |
| **Trigger** | See steps below |
| **Primary components** | `ClaimBillEntryRepository.GetNextClaimBillFromQueue` |

## Steps

1. Pass `hasConflictAccess` to `ICCClaimApiService.GetNextClaimBillFromQueue`.
   - Rule: [SDN-BR-001](../business-rules.md#sdn-br-001-claim-bill-queue-operations-are-served-by-the-guidewire-cc-claim-api%2C-not-by-the-legacy-oracle-package). SQL: none.
   - Delegates: SAIF.Data / `CCClaimApiService.GetNextClaimBillFromQueue`, which applies [SD-BR-013](../../saif-data/business-rules.md#sd-br-013-bill-queue-http-status-mapping).
   - The legacy named query [SQL-050](../sql/SQL-050-get-next-bill-from-queue-unused.md) is defined but unused.

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
	Start(["Claim bill queue — next bill"]) --> S1["`ClaimBillEntryRepository.GetNextClaimBillFromQueue`"]
	S1 --> S2{"Rules satisfied?"}
	S2 -->|Yes| EndOk([Result returned])
	S2 -->|No| EndErr([Exception / empty result])
```

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [SQL catalog](../sql/index.md)
- [Database tables](../database-tables.md)

## Sources
- `Data/SAIF.Data.NHibernate/Repositories/ClaimBillEntryRepository.cs`
