Problem
Moving a motor claim forward meant a lot of manual execution for claims representatives, and every manual step costs time and invites error. The platform’s job was to take that work out of their hands.
What I built
I contributed to a claims platform for a UK motor insurer, as a developer at Consulting Blocks. The work was project-based and I worked under a senior developer’s supervision. My part was on the OmniStudio side: pieces of the claim, claim participants and total-loss offer experience, including the flow where an offer is accepted or rejected and routed to a manager.
The platform reduced manual execution time for claims representatives by 50%.
- 50%less manual execution time for claims representatives
How it works
The patterns below describe the OmniStudio approach used on this kind of build, not a specification of the client’s system.
OmniStudio approach used on this kind of build, not a specification of the client's system.
The pattern: related records by type. A FlexCard fetches related records through a DataRaptor Extract and groups them by type, so a representative sees each kind of party in its own block instead of one mixed list.
Status-based blocks. FlexCard states and conditional views show only the blocks and actions that make sense for the record’s status, so the screen itself tells the representative what comes next.
Offer flow. An offer decision is modelled as an OmniScript. Branching decides the path, a remote action calls an Integration Procedure, and the accept or reject decision is routed to a manager for approval.
Building blocks I worked with.
- OmniScripts and FlexCards: branching, remote actions, set values and set errors, navigate actions, lookups, Type Ahead, formula functions, conditional blocks and Edit Blocks.
- DataRaptors: Extract, Post, Transform and Delete.
- Integration Procedures: conditional blocks and loop blocks.
- Delivery: Change Sets and Bitbucket, JIRA for tracking, Agile sprints.
public with sharing class OfferDecisionService {
public enum Decision { ACCEPT, REJECT }
/** Record the decision and hand it to the manager for sign-off. */
@AuraEnabled
public static Id submitForManager(Id offerId, String decision, String reason) {
Total_Loss_Offer__c offer = [
SELECT Id, Status__c, Claim__r.OwnerId
FROM Total_Loss_Offer__c
WHERE Id = :offerId
WITH USER_MODE
];
if (offer.Status__c != 'Offered') {
throw new AuraHandledException('This offer can no longer be decided.');
}
offer.Decision__c = decision;
offer.Decision_Reason__c = reason;
update as user offer;
Approval.ProcessSubmitRequest req = new Approval.ProcessSubmitRequest();
req.setObjectId(offerId);
req.setComments(reason);
req.setSubmitterId(UserInfo.getUserId());
Approval.ProcessResult result = Approval.process(req);
return result.getInstanceId();
}
}