Touchstone 11.0 API Reference
SubmitClfExport Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > DataExportServiceClient Class : SubmitClfExport Method
Contains a SubmitClfExportRequest that identifies the Export Options that specify the destination and other characteristics of the loss results that you want to export to a CLF, along with the associated Business Unit SID and SQL Instance SID.
Submits a request to export Touchstone® Detailed Loss Analysis results to a Company Loss File (CLF™).

CLFs enable you to send the Loss Analysis results (that were stored in a Results database) to reinsurers and investors who license CATRADER®. CLFs are especially useful when you are analyzing non-standard books with unusually high deductibles or unique geographic concentrations, per risk and surplus share treaties, and facultative contracts. After specifying the target Analysis SID, you specify the perils and Financial Perspectives to include and map any unrecognized Line of Business (LOB) values. The loss results are exported in the same currency that you used to run the Loss Analysis.

Note: In order to export losses to a CLF, you must run the Analysis and save losses at specific levels. See Getting Started with Touchstone for more information about the conditions required to export Loss Analysis results to a CLF.

Syntax
Public Function SubmitClfExport( _
   ByVal request As SubmitClfExportRequest _
) As SubmitClfExportResponse
Dim instance As DataExportServiceClient
Dim request As SubmitClfExportRequest
Dim value As SubmitClfExportResponse
 
value = instance.SubmitClfExport(request)

Parameters

request
Contains a SubmitClfExportRequest that identifies the Export Options that specify the destination and other characteristics of the loss results that you want to export to a CLF, along with the associated Business Unit SID and SQL Instance SID.

Return Value

A SubmitClfExportResponse containing the Activity SID that uniquely identifies the asynchronous web service call that you made to submit the specified loss results export request.
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.

For information about submitting a new Touchstone Detailed Loss Analysis job, see the SubmitDetailedLossAnalysis() method.

Example
The following example shows how to submit a request to export Touchstone Detailed Loss Analysis results to a CLF using the SubmitClfExport() method:
using System;
using System.Collections.Generic;
using AIR.Services.Common.Data;
using AIR.Services.DataExport.Api;
using AIR.Services.DataExport.Data;
            
class SnippetSubmitClfExportRequest
{
   private static void SubmitClfExport(int businessUnitSid, int sqlInstanceSid, int projectSid, int analysisSid,
           List<UserToIndustryLineOfBusinessMapping> lobMappings, string exportFolder, string exportFileName, string exportActivityName)
   {
       DataExportServiceClient client = new DataExportServiceClient();
            
       SubmitClfExportRequest exportRequest = new SubmitClfExportRequest();
       exportRequest.BusinessUnitSid = businessUnitSid;
       exportRequest.SqlInstanceSid = sqlInstanceSid;
       exportRequest.ExportOptions = new ClfExportOptions()
       {
           ProjectSid = projectSid,
           AnalysisSid = analysisSid,
           FinancialPerspectives = FinancialPerspectives.All,
           Perils = PerilSetCode.AllLicensedPerils,
           TargetYears = TargetYears.Y10k,
           UserToIndustryLineOfBusinessMappings = lobMappings,
           DestinationFolder = exportFolder,
           DestinationFileName = exportFileName,
           ActivityName = exportActivityName,
       };
       
       SubmitClfExportResponse exportResponse = client.SubmitClfExport(exportRequest);
       
       if (exportResponse.Status.Code == StatusCode.Success)
           Console.WriteLine("Submitted Successfully to HPC with Activity ID: " + exportResponse.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

DataExportServiceClient Class
DataExportServiceClient Members