Touchstone 11.0 API Reference
SubmitPortfolioAggregateLossAnalysis Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ReinsuranceAggregateLossAnalysisServiceClient Class : SubmitPortfolioAggregateLossAnalysis Method
Contains a SubmitPortfolioAggregateLossAnalysisRequest that specifies the Business Unit SID and SQL Instance SID associated with the portfolio of reinsurance treaties to include in the analysis, as well as the PortfolioAggregateLossAnalysisOptions object that enables you to configure the analysis job.
Submits a request to run an aggregate loss analysis against a portfolio of reinsurance treaties.
Syntax
Public Function SubmitPortfolioAggregateLossAnalysis( _
   ByVal request As SubmitPortfolioAggregateLossAnalysisRequest _
) As SubmitPortfolioAggregateLossAnalysisResponse
Dim instance As ReinsuranceAggregateLossAnalysisServiceClient
Dim request As SubmitPortfolioAggregateLossAnalysisRequest
Dim value As SubmitPortfolioAggregateLossAnalysisResponse
 
value = instance.SubmitPortfolioAggregateLossAnalysis(request)
public SubmitPortfolioAggregateLossAnalysisResponse SubmitPortfolioAggregateLossAnalysis( 
   SubmitPortfolioAggregateLossAnalysisRequest request
)

Parameters

request
Contains a SubmitPortfolioAggregateLossAnalysisRequest that specifies the Business Unit SID and SQL Instance SID associated with the portfolio of reinsurance treaties to include in the analysis, as well as the PortfolioAggregateLossAnalysisOptions object that enables you to configure the analysis job.

Return Value

A SubmitPortfolioAggregateLossAnalysisResponse 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 portfolio of reinsurance treaties using the SubmitPortfolioAggregateLossAnalysis() method:
using AIR.Services.Common.Data;
using AIR.Services.Reinsurance.AggregateLossAnalysis.Api;
using System;
            
class SnippetSubmitPortfolioAggregateLossAnalysis
{
    private static void SubmitPortfolioAggregateLossAnalysis(int businessUnitSid, int sqlInstanceSid, int portfolioSid)
    {
        ReinsuranceAggregateLossAnalysisServiceClient client = new ReinsuranceAggregateLossAnalysisServiceClient();
        SubmitPortfolioAggregateLossAnalysisRequest request = new SubmitPortfolioAggregateLossAnalysisRequest();
        request.BusinessUnitSid = businessUnitSid;
        request.SqlInstanceSid = sqlInstanceSid;
        request.PortfolioAggregateLossAnalysisOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.PortfolioAggregateLossAnalysisOptions
        {
            AnalysisName = "API Loss" + DateTime.Now.Ticks,
            PortfolioSid = portfolioSid,
            CurrencyExchangeRateSetSid = 5,
            EventSetSid = 49,
            PerilSetCode = AIR.Services.Common.Data.PerilSetCode.AllLicensedPerils,
            OutputOptions = new AIR.Services.Reinsurance.AggregateLossAnalysis.Data.PortfolioLossOutputOptions
            {
                CedantPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.EventTotal,
                ReinsurerPerspectiveGeographyLevel = AIR.Services.Reinsurance.AggregateLossAnalysis.Data.ResultGeographyDetailCode.Subarea,
                SaveLossByProgram = true,
                ReinsurerPerspectiveSaveByLinesofBusiness = true
            },
        };
        SubmitPortfolioAggregateLossAnalysisResponse response = client.SubmitPortfolioAggregateLossAnalysis(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