Touchstone 11.0 API Reference
SubmitMultiProgramAggregateLossAnalysis Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceAggregateLossAnalysisServiceClient Class : SubmitMultiProgramAggregateLossAnalysis Method
Contains a SubmitMultiProgramAggregateLossAnalysisRequest that specifies the Business Unit SID and SQL Instance SID associated with the reinsurance programs to include in the analysis, as well as the MultiProgramAggregateLossAnalysisOptions object that enables you to configure the analysis job.
Submits a request to run an aggregate loss analysis against a set of Reinsurance Programs. The programs must be associated with one Touchstone Re Company.

You can optionally filter the list of treaties associated with the programs.

Syntax
Public Function SubmitMultiProgramAggregateLossAnalysis( _
   ByVal request As SubmitMultiProgramAggregateLossAnalysisRequest _
) As SubmitMultiProgramAggregateLossAnalysisResponse
Dim instance As ReinsuranceAggregateLossAnalysisServiceClient
Dim request As SubmitMultiProgramAggregateLossAnalysisRequest
Dim value As SubmitMultiProgramAggregateLossAnalysisResponse
 
value = instance.SubmitMultiProgramAggregateLossAnalysis(request)
public SubmitMultiProgramAggregateLossAnalysisResponse SubmitMultiProgramAggregateLossAnalysis( 
   SubmitMultiProgramAggregateLossAnalysisRequest request
)

Parameters

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

Return Value

A SubmitMultiProgramAggregateLossAnalysisResponse 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.

To find the Program SIDs to pass into this method, call the GetPrograms() method.

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

You can run an aggregate loss analysis on one reinsurance program, multiple reinsurance programs in a company, 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 set of reinsurance programs using the SubmitMultiProgramAggregateLossAnalysis() method:
using AIR.Services.Common.Data;
 using AIR.Services.Reinsurance.AggregateLossAnalysis.Api;
 using System;
 using System.Collections.Generic;
 public class SnippetSubmitMultiProgramAggregateLossAnalysis
{
    private static void SubmitMultipleProgramsAggregateLossAnalysis(int businessUnitSid, int sqlInstanceSid, List<int> programSids)
    {
        ReinsuranceAggregateLossAnalysisServiceClient client = new ReinsuranceAggregateLossAnalysisServiceClient();
        SubmitMultiProgramAggregateLossAnalysisRequest request = new SubmitMultiProgramAggregateLossAnalysisRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
            
        request.MultiProgramAggregateLossAnalysisOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.MultiProgramAggregateLossAnalysisOptions()
        {
            AnalysisName = "API Multiple Program loss at-" + DateTime.Now.Ticks,
            ProgramSids = programSids,
            CurrencyExchangeRateSetSid = 5,
            EventSetSid = 46,
            PerilSetCode = AIR.Services.Common.Data.PerilSetCode.Earthquake | AIR.Services.Common.Data.PerilSetCode.FireFollowingEarthquake,
            DemandSurge = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.DemandSurgeType.Withoutdemandsurge,
            UseLatestIED = true,
            OutputOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.PortfolioLossOutputOptions()
            {
                CedantPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.Subarea,
                ReinsurerPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.Subarea,
                SaveLossByProgram = true,
                ReinsurerPerspectiveSaveByLinesofBusiness = true,
                ReinsurerPerspectiveSaveByZoneSet = false,
            }
        };
        SubmitMultiProgramAggregateLossAnalysisResponse response = client.SubmitMultiProgramAggregateLossAnalysis(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