---
title: "SQL-045: Pk82033_ThirdParty.selectTasks"
summary: Read operation used by `Criteria`.
status: draft
owner: SAIF
last_reviewed: 2026-07-28
library: SAIF.Business.Claim.ThirdParty
reference_type: package
---

# SQL-045: Pk82033_ThirdParty.selectTasks

This SQL artifact supports ``Criteria`` by executing a read operation through StoredProc.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-045 |
| **Operation type** | Read |
| **Execution method** | StoredProc |
| **Database** | Oracle |
| **Schema** | [unqualified]** |
| **Command type** | StoredProcedure |
| **Business object** | ``Criteria`` |
| **Criteria property** | ``retrievesql`` |
| **Lifecycle method** | ``Criteria read`` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:userName` | Input | String | 30 | Source value `MyCriteria.TaskUserName` |
| `:taskCode` | Input | String | 5 | Source value `MyCriteria.TaskCode` |
| `:FromDate` | Input | Date | N/A | Source value `MyCriteria.FromDate` |
| `:ThruDate` | Input | Date | N/A | Source value `MyCriteria.ThruDate` |
| `:ClaimId` | Input | Number | N/A | Source value `MyCriteria.ClaimId` |
| `:caseSeqNum` | Input | Number | N/A | Source value `MyCriteria.CaseSeqNum` |
| `:taskCode` | Input | String | 5 | Source value `MyCriteria.TaskCode` |
| `:recordset` | Output | REF CURSOR | N/A | Source value `cursor` |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [THRDPARTY_TASK](../database-tables.md#thrdparty_task) | READ | See sample SQL. |

## Sample SQL

```sql
BEGIN Pk82033_ThirdParty.selectTasks(:userName, :taskCode, :FromDate, :ThruDate, :ClaimId, :caseSeqNum, :taskCode, :recordset); END;
-- Stored procedure body retrieved from Oracle package WCIS_DBA.Pk82033_ThirdParty.
```

> **Note:** Statements marked with * were inferred from code structure, naming conventions, or
> contextual evidence where direct confirmation was not available in source artifacts. Statements
> marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Claim.ThirdParty\clsThirdPartyTaskCollection.vb`
