Touchstone Re 2023 API Reference
SubmitProgramAggregateLossAnalysis Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceAggregateLossAnalysisServiceClient Class : SubmitProgramAggregateLossAnalysis Method
Contains a SubmitProgramAggregateLossAnalysisRequest that specifies the Business Unit SID and SQL Instance SID associated with the reinsurance program to include in the analysis, as well as the ProgramAggregateLossAnalysisOptions object that enables you to configure the analysis job.
Submits a request to run an aggregate loss analysis against a reinsurance program.
Syntax

Parameters

request
Contains a SubmitProgramAggregateLossAnalysisRequest that specifies the Business Unit SID and SQL Instance SID associated with the reinsurance program to include in the analysis, as well as the ProgramAggregateLossAnalysisOptions object that enables you to configure the analysis job.

Return Value

A SubmitProgramAggregateLossAnalysisResponse that contains the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the analysis job.
Remarks
To find the Business Unit SID to pass into this method, call the GetBusinessUnits() method.

To find the SQL Instance SID to pass into this method, call the GetSqlInstances() method.

You can retrieve the analysis results by querying the Touchstone Re databases.

You can run an aggregate loss analysis on a reinsurance program or on a portfolio of reinsurance treaties.

You run aggregate loss analyses in Touchstone Re and detailed loss analyses in Touchstone. The primary difference between the loss analysis types is the resolution of the input data. For aggregate loss analyses, the input data is at the area or subarea level; whereas for detailed loss analyses, the input data is at the location level.

Example
The following example shows how to submit an aggregate loss analysis against a reinsurance program using the SubmitProgramAggregateLossAnalysis() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.AggregateLossAnalysis.Api;
using System;
using System.Collections.Generic;
            
class SnippetSubmitProgramAggregateLossAnalysis
{
    private static void SubmitProgramAggregateLossAnalysis(int businessUnitSid, int sqlInstanceSid, int companySid, int programSid)
    {
        ReinsuranceAggregateLossAnalysisServiceClient client = new ReinsuranceAggregateLossAnalysisServiceClient();
        SubmitProgramAggregateLossAnalysisRequest request = new SubmitProgramAggregateLossAnalysisRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.ProgramAggregateLossAnalysisOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ProgramAggregateLossAnalysisOptions
        {
            AnalysisName = "API Loss" + DateTime.Now.Ticks,
            ProgramSid = programSid,
            CompanySid = companySid,
            CurrencyExchangeRateSetSid = 5,
            EventSetSid = 46,
            PerilSetCode = PerilSetCode.AllLicensedPerils,
            UseLatestIED = false,
            OutputOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ProgramLossOutputOptions
            {
                CedantPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.EventTotal,
                ReinsurerPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.Subarea,
                ReinsurerPerspectiveSaveByLinesofBusiness = true,
                ReinsurerPerspectiveSaveByZoneSet = true,
                Zonesets = new List <int> { 1 },
            },
        };
        SubmitProgramAggregateLossAnalysisResponse response = client.SubmitProgramAggregateLossAnalysis(request);
        if (response.Status.Code == StatusCode.Success)
        {
            Console.WriteLine("Submitted Successfully to HPC with Activity SID: " + response.ActivitySid);
        }
    }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ReinsuranceAggregateLossAnalysisServiceClient Class
ReinsuranceAggregateLossAnalysisServiceClient Members