Doubt on alpha assignment while approving case by underwriter

While underwriter approving the case instance he is able to add comments and approved into true. I’m receiving it through an input field but how can i add these details into the case instance. when i checked that it is not updated.

@Sam @Simphiwe

2 Likes

Hello @Aswin,
Did you use case service trigger to approve the case??

2 Likes

yes i used that and it got removed from mytask tab and i want to save the policy amount ,underwriter decision and underwriter comment to the case data so i can pull that info in the reviewer tab
@Sam

1 Like

Hello @Aswin ,
If you want to include comments, policy amount, or any other data, you can first use another Case Service before the approval Case Service.
Select Update Case Data, provide only the cid, and keep caseData empty — no need to add anything.
This way, you can pass and fetch the required data later in the Reviewer page

1 Like
    const caseData = {
            "caseType": "alpha_training",
            "caseData": {
                "Customer_info": {
                    "firstname": Customer_info.firstname,
                    "lastname": Customer_info.lastname,
                    "email": Customer_info.email,
                    "address": Customer_info.address,
                    "dob": Customer_info.dob,
                    "age": response.result.Driver_Age,
                },
                "policy_details": {
                    "inception_date": new Date().toLocaleDateString(),
                    "policy_type": "Motor Insurance",
                    "sum_assured": response.result.MT_VehicleDetails.SumInsured,
                    "coverage_term": policy_details.coverage_term,
                    "premium_amt": 0,
                    "end_date": policy_details.end_date,
                    "business_Channel": policy_details.business_Channel,
                    "make": response.result.MT_VehicleDetails.make_en,
                    "model": response.result.MT_VehicleDetails.model_en,
                    "production_year": policy_details.production_year,
                    "deductable": policy_details.deductable,
                    "vehicle_number": policy_details.vehicle_number
                },
                "decision_status": {
                    "underwriting_approved": false,
                    "underwriting_comments": "",
                    "approval_approved": "",
                    "approval_comments": "",
                    "decision_date": ""
                }
            },
            "wfData": {
                "stp_rules_request": {
                    "version": "1.0.6",
                    "inputObj": {
                        "dob": Customer_info.dob,
                        "businessChannel": policy_details.businessChannel,
                        "make": policy_details.make,
                        "model": policy_details.model,
                        "productionYear": policy_details.productionYear,
                        "driverExperience": Customer_info.driver_experience,
                        "deductable": policy_details.deductable
                    },
                    "workflowId": "ed45d645-dd47-4041-a8e6-a9e1c9a7eb"
                }
            }
        }

This is how i create the case data so does this method work on this ? @Sam

1 Like

here only the comment is updated when i did the thing which you said, how can i update the underwriting approved into true. and add the decision date ??
@Sam

1 Like

Hello @Aswin ,
Refer this,

1 Like

I read that and gave the underwriter_approved as true but still it is not updating i will share the SS.

@Sam

1 Like

Hello @Aswin ,
I checked in BPM with your PIID, and it is stopping at the underwriter operation step.
Please try debugging using the console — add logs both before the case service and after the case service to confirm that everything is working as expected.

1 Like

is that because i was initially setting the underwriting_approved as false is that the problem ??

“decision_status”: {
“underwriting_approved”: false,
“underwriting_comments”: “”,
“approval_approved”: “”,
“approval_comments”: “”,
“decision_date”: “”
}

like this in the initial case data

@Sam

1 Like