Touchstone 11.0 API Reference
SubmitExposureModify Method
Example 


Air.Services.Proxy Assembly > (Global) Namespace > ExposureManagementServiceClient Class : SubmitExposureModify Method
Contains a SubmitExposureModifyRequest that identifies the ExposureModifyOptions that indicate the source and target perils, as well as the Touchstone-generated Business Unit SID and SQL Instance SID to associate with the contract or exposure set.

Modify perils associated with a Touchstone® contract or an exposure set.

AIR has updated the Exposure Management API to enable modifying perils in a contract or in an exposure view. Touchstone will not change the existing perils. This SubmitExposureModifyRequest class allows you to retain the existing perils in a contract or exposure view at the same time provides flexibility for adding more perils based on geographic distribution and financial impact that you want to determine for the modified exposures.

For example, a reinsurer gets exposure data coded for Fire Following and Earthquake Shake. Touchstone has added a sub-peril as part of a model update, and you want to make sure that your exposure data contains that new peril—for example, the Tsunami sub-peril was added for a region and you want to add it anywhere you already have EarthquakeShake.

Syntax
Public Function SubmitExposureModify( _
   ByVal request As SubmitExposureModifyRequest _
) As SubmitExposureModifyResponse
Dim instance As ExposureManagementServiceClient
Dim request As SubmitExposureModifyRequest
Dim value As SubmitExposureModifyResponse
 
value = instance.SubmitExposureModify(request)

Parameters

request
Contains a SubmitExposureModifyRequest that identifies the ExposureModifyOptions that indicate the source and target perils, as well as the Touchstone-generated Business Unit SID and SQL Instance SID to associate with the contract or exposure set.

Return Value

A SubmitExposureModifyResponse containing the Activity Sequential Identifier (SID) object for the modified contract.
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.

Example
using AIR.Services.Common.Data;
using AIR.Services.Common.Exposure.Data;
using AIR.Services.ExposureManagement.Api;
using System;
            
class SnippetSubmitExposureModify
{
private void SubmitExposureModify(int businessUnitSid, int sqlInstanceSid, int projectSid, int exposureViewSid)
{
ExposureManagementServiceClient client = new ExposureManagementServiceClient();
var modifyRules = new System.Collections.Generic.List<ExposureModifyRule>();
            
modifyRules.Add(new ExposureModifyRule
   {
            
Action = ExposureModifyAction.Remove,
Entity = AppliedEntity.Peril,
SourceValue = AIR.Services.Common.Data.PerilSetCode.Earthquake,
TargetValue = AIR.Services.Common.Data.PerilSetCode.TropicalCyclone
});
            
            
var modifyOptions = new ExposureModifyOptions
   {
            
Rules = modifyRules,
IsOverwrite = true,
IsExpView = true,
ExposureViewSID = exposureViewSid,
ProjectSID = projectSid,
IsGenerateExpViewSummary = true
};
            
SubmitExposureModifyRequest request = new SubmitExposureModifyRequest();
            
request.SqlInstanceSid = businessUnitSid;
request.BusinessUnitSid = sqlInstanceSid;
request.Options = modifyOptions;
            
var response = client.SubmitExposureModify(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

ExposureManagementServiceClient Class
ExposureManagementServiceClient Members