Loading
Insurance
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Watercraft Quote OmniScript

          Watercraft Quote OmniScript

          Look under the hood of the Watercraft quote process with details of the quote OmniScript.

          All our screenshots are currently in Lightning style. Your spin may look different because it's using the Newport style in the Broker Portal and Customer Portal.

          The name of the watercraft quote OmniScript is:

          • Type/SubType: watercraft/multiVesselQuote

          • OmniScript name: Marine - Multi Vessel

          You can launch this OmniScript from the following applications, where it can be accessed by the types of users described:

          • Broker Portal (Newport)

            For use by brokers and agents

          • Interaction Console (Lightning)

            Internal insurance agent

          • Vlocity Admin Lighting Experience (Newport)

            • Internal insurance agent

            • Vlocity admin

          How It Works

          This section describes how someone who goes through the Marine Multi Vessel OmniScript to create a quote will see and interact with it.

          The Marine Multi Vessel OmniScript starts with an intro page:

          Illustrates the introductory screen for the quoting workflow.

          First, we gather information about the boats that will be insured. The fields in the form correspond to attributes in the insured item spec in the product model. In addition to basic info about each vessel, we ask questions that could have an impact on the rating. These questions also correspond to attributes on the insured item spec.

          You can click AutoFill to fill out data quickly to test and learn about this flow.

          The Policy Start Date defaults to today's date.

          The next step gathers information about the marine operators who will be insured. The fields and choices here correspond to attributes on the insured party spec in the product model.

          After all the info about vessels and the operator is complete, the OmniScript transforms the data to get it into the right format for the InsProductService:getRatedProducts service to use. It also calls Omnistudio Data Mapper transform actions to create or update the relevant account record.

          Next, the insOsMultiInstanceGrandchildren Vlocity Lightning Web Component calls the InsProductService:getRatedProducts service and returns the rated insurance product. The user sees each vessel, with the quoted price.

          On this page, users can open each vessel and configure attribute values on coverages. Each time a user changes an attribute value, the quoted price for the vessel is dynamically updated.

          Still on the same page, users can select (and deselect) optional coverages.

          At the bottom, this page shows the total price for the quote. The price changes dynamically every time the user makes a change to an attribute value or an optional coverage.

          After you've finished, the OmniScript uses a Data Mapper transform action to transform the data into the right format for the InsQuoteService:createUpdateQuote service. Next, the OmniScript calls the InsQuoteService:createUpdateQuote service to generate a quote.

          Finally, it displays a quote confirmation, which includes the quoted premium price.

          What's In It

          The Marine Multi Vessel OmniScript is LWC Enabled.

          Here's a look at each component of the Marine - Multi Vessel OmniScript, including the component type, the purpose of the component, and what the component calls:

          1. ipGetQuoteContext

            • Component type: Integration Procedure Action

            • What it does: For the given account Id, extracts the context type. Context Id can be Person Account, Producer, or Business Account.

            • Calls: ins_GetQuoteContext

          2. readAccount

            • Component type: Data Mapper Extract Action

            • What it does: Extracts an account Id when the context type is Person Account.

            • Calls: wi_ExtrPersAcctDetails_QuoteOS

          3. readProducer

            • Component type: Data Mapper Extract Action

            • What it does: Extracts a producer Id when the context type is Producer.

            • Calls: wi_ExtrProducer_QuoteOS

          4. intro

            • Component type: Step > Text Block

            • What it does: Shows users intro text about auto insurance.

            • Calls: None

          5. crafts

            • Component type: Step

            • What it does: Gathers information about the vessels to be insured. Includes various components that allow information to be entered in specific formats. Also includes the AutoFillVessels Set Values component to allow sample vessel details to be entered for test or demo purposes.

            • Calls: None

          6. operator

            • Component type: Step

            • What it does: Gathers information about the operator to be insured. Includes various components that allow information to be entered in specific formats. Also includes the AutoFillOperator Set Values component to allow sample operator details to be entered for test or demo purposes.

            • Calls: None

          7. transformInsuredItems

            • Component type: Data Mapper Transform Action

            • What it does: Formats the data JSON.

            • Calls: wi_TransInsureditems_QuoteOS

          8. upsertPersAcctOppty

            • Component type: Data Mapper Post Action

            • What it does: Creates an account and an opportunity. This step is used when the corresponding person account doesn't already exist so both the account and the opportunity must be created.

            • Calls: wi_PostPersAcctOppty_QuoteOS

          9. upsertPersOppty

            • Component type: Data Mapper Post Action

            • What it does: Creates an opportunity. This step is used when the corresponding person account already exists and only the opportunity must be created.

            • Calls: wi_PostPersOppty_QuoteOS

          10. createUserInputs

            • Component type: Data Mapper Transform Action

            • What it does: Formats the data JSON so that the InsProductService:getRatedProducts service can take it as input and rate the insurance product(s)

            • Calls: wi_TransForPrice_QuoteOS

          11. configureCoverages > configureProduct

            • Component type: Step > Custom LWC

            • What it does: Provides a UI that lets the user configure the insured items, insured parties, and coverages on the rated product.

            • Calls: vlocity_ins__insOsMultiInstanceGrandchildren, which invokes the AttributeRatingHandler:getRatedProducts service

          12. transformtoQuote

            • Component type: Data Mapper Transform Action

            • What it does: Format the data JSON so that the InsQuoteService:createUpdateQuote service can take it as input and create the quote

            • Calls: wi_TransForQuote_QuoteOS

          13. createQuote

          14. setStateTransition

            • Component type: Set Values

            • What it does: Sets the state of the policy based on the status field of the quote object.

            • Calls: auto_ReadQuote_QuoteOS Data Mapper

          15. QuoteWrapUp1

            • Component type: OmniScript

            • What it does: Invokes rules and displays the quote details and confirmation message.

            • Calls: ins_QuoteWrapUp

           
          Loading
          Salesforce Help | Article