December 2023

The December release of the Risk Modeler API introduces updates to user-defined workflows. TEST

The Create User-Defined Workflow operation now enables you to combine and execute batch and geohaz operations as a single job, which greatly reduces runtime. For custom workflows that import and geohaz accounts with up to 1000 locations, the entire process can be completed 2-3 times faster than a comparable workflow that does not combine the batch and geohaz operations.

The optional combine-batch-edit-and-geohaz parameter must be true to enable this feature. If true, the custom worfklow combines the batch and geohaz operations and the output for both operations is returned as a single object. If false, distinct output is returned for the batch and geohaz operations. By default, false.

For example, the following request defines a custom workflow that consists of three operations: a batch, geohaz, and process operation. During processing, the batch and geohazoperations are combined and executed together as a single job within the workflow. Theprocess` operation is handled as a distinct job.

{
    "name": "ExpBatchEdit With GeoHaz",
    "settings": {
        "disable-underwriter-reports": true,
        "combine-batch-edit-and-geohaz": true
    },
    "operations": [
        {
            "continueOnFailure": "false",
            "dependsOn": [],
            "input": { ... },
            "label": "ExposureBatch",
            "operation": "/v3/exposurebatches?datasource=datasource"
        },
        {
            "continueOnFailure": false,
            "dependsOn": [
                "ExposureBatch"
            ],
            "input": [ ... ],
            "label": "GEOHAZ",
            "operation": "/v2/accounts/{{$.ExposureBatch.output.accounts.[?(@.label == 'account-label')].id}}/geohaz?datasource=datasource"
        },
        {
            "continueOnFailure": false,
            "dependsOn": [
                "GEOHAZ"
            ],
            "input": { ... },
            "label": "DLM",
            "operation": "/v2/accounts/{{$.ExposureBatch.output.accounts.[?(@.label == 'account-label')].id}}/process"
        }
    ]
}

To combine batch and geohaz operations into a single job, the geohaz operation must specify the batch operation by name in the dependsOn attribute.

This release does not support the chaining of multiple batch operations in the same workflow.

Disable underwriter reports

The Create User-Defined Workflow endpoint now supports the new disable-underwriter-reports parameter . If true, underwriter reports are not generated. By default, false.

{
    "name": "ExpBatchEdit With GeoHaz",
    "settings": {
        "disable-underwriter-reports": true,
        "combine-batch-edit-and-geohaz": true
    },
    "operations": [ ...]
}