Pk82033_ThirdParty¶
Overview¶
| Field | Value |
|---|---|
| Schema | WCIS_DBA |
| Type | Package (92 members; 1 invoked by this library) |
| Database | Oracle |
| Status | ✅ found — retrieved via Legends CLI |
| Query executed | legends oracle query --name Pk82033_ThirdParty |
| Calling libraries | SAIF.Business.View.Policy |
| Calling classes | clsPolicyData |
Purpose¶
Pk82033_ThirdParty is a large (92-member) third-party administration package. This library invokes
only one member, get_policy_waiver_count, to determine whether a policy has any waiver detail rows.
Procedures / Methods¶
get_policy_waiver_count¶
| Field | Value |
|---|---|
| Returns | NUMBER (function return value) |
| Called by | clsPolicyData.RetrieveHasWaiver (clsPolicyData.vb:1532-1552, SQL at 2267) |
Description: Counts waiver detail rows for a policy. The caller converts the count to a Boolean via
CBool, so any count greater than zero means "has waiver" (see rule PR-BVP-041 in
Business Rules below).
Parameters¶
| Parameter | Direction | Type | Default | Description |
|---|---|---|---|---|
PolicyNum |
IN | POLICY.POLICY_NUM%TYPE |
— | Policy number |
| (return) | RETURN | NUMBER |
— | Waiver row count |
Business Rules¶
Rules extracted from this package's logic:
| Rule ID | Rule | Condition | Action |
|---|---|---|---|
| PR-BVP-041 | Waiver presence is a count over waiver detail | always | SELECT COUNT(*) FROM WAIVER_DETAIL WHERE POLICY_NUM = PolicyNum; caller converts to Boolean via CBool, so any count > 0 means "has waiver" (clsPolicyData.vb:1532-1552) |
These rules are documented in business-rules.md.
Operations¶
Operations and processes implemented in this package:
| Operation | Description | Trigger |
|---|---|---|
| Count policy waivers | Counts waiver detail rows for a policy; caller reduces to a Boolean HasWaiver |
clsPolicyData.RetrieveHasWaiver (clsPolicyData.vb:1532-1552, SQL at 2267) |
These operations are also listed in operations-processes.md with source reference back to this document.
Source Code¶
PL/SQL function (specification and body)
Related Documentation¶
Sources¶
- Oracle DBA_SOURCE:
WCIS_DBA.Pk82033_ThirdParty - Legends CLI query executed 2026-08-31:
legends oracle query --name Pk82033_ThirdParty - Calling code:
SAIF.Business.View.Policy/clsPolicyData.vb:1532-1552