Initialize the claim manager and data layer¶
This operation prepares the Oracle claim data portal that every subsequent claim data-access call in the manager's lifetime uses.
| Field | Value |
|---|---|
| Operation ID | OP-CLM-4 |
| Trigger | OnInitialize() then OnCreateDataLayer(), invoked by the inherited AppManagerBase.Initialize() template method |
| Inputs | none |
| Outputs | IDataPortalInfo handle registered under key ClaimDPI |
| Primary components | ClaimAppManager.OnInitialize, ClaimAppManager.OnCreateDataLayer |
| Entry point | SAIF.Application.Claim/ClaimAppManager.vb |
Steps¶
OnInitialize()setsDataLayer.DBUser = "CLM"and seedsMessage = ClaimAppConstants.PLEASEENTERCLAIM(BR-CLM-013).OnCreateDataLayer()callsDataLayer.CreateOraclePortal(ClaimAppConstants.DPIClaimKey)— creating the Oracle portal and registering the resultingIDataPortalInfounder keyClaimDPI.- Delegated logic: implemented in
ApplicationDataAccess.CreateOraclePortal(SAIF.Application).Origin: Oracle portal creation is implemented in
SAIF.Application(ApplicationDataAccess.CreateOraclePortal) and executed on behalf of this operation. - On any exception, call
MarkContextNotSet(),MarkNoAccess(), and rethrow asApplicationException("Unable to Establish Database Connection", ex)(BR-CLM-014).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Initialize]) --> SetUser[DataLayer.DBUser = CLM]
SetUser --> SeedMsg["Seed Message: enter valid<br>claim number"]
SeedMsg --> CreatePortal[CreateOraclePortal ClaimDPI]
CreatePortal --> Result{Exception?}
Result -->|No| Ready(["Portal ready under key<br>ClaimDPI"])
Result -->|Yes| Fail["MarkContextNotSet,<br>MarkNoAccess"]
Fail --> Rethrow([Throw ApplicationException])
Failure and edge-case behavior¶
- No statements are executed during this operation; only the Oracle connection is opened.
- A connection failure leaves the manager in a no-access, no-context state and rethrows as
ApplicationException.
Related documentation¶
Sources¶
SAIF.Application.Claim/ClaimAppManager.vbSAIF.Application.Claim/ClaimAppConstants.vb