Doubt on rejecting the policy

i gave this configuration for the decline button and setted the status true as initial in the case creation body like this

i saw a message in another topic like in the BPM flow it is already defined for sending email when the underwriter reject it. But here in this case it is not sending email and nothing is happening. The task is removed from myTask tab. What to do ?
Could someone please help me with this.
@Sam @Simphiwe

Hello @Aswin ,
Could you please share the process ID of that case?

Hello @Sam

Where can i find the process id ?

Hello @Aswin ,
Just share the cid

When i rejected i lost that one from my task can i create a new case and share that CID. @Sam

Hello @Aswin ,
Yes you create a new one

This is the CID 9301

i just created the case right now do you want me to decline this ??

Hello @Aswin ,
You can try both approve or reject,if approve doesnt work then reject

When i do approve or reject i can see that the case is removing from my task tab . But the issue is when i do alpha.co.get() in the console im able to see the comments which i was added but not the approved status. the status is still will be the same which i was given as default value.

So what should i do right now accept or decline ?

@Sam

Hello @Aswin ,
Did you approve or reject the current case?you can approve the case

I approved it @Sam what to do next ??

Hello @Aswin ,
It seems that your underwriter operation has been successfully completed.
That’s why you can no longer see your case in My Task.
You can now proceed with the approval in the Reviewer stage

Ok let me approve from the reviewer page @Sam

image

i got this in the console when i tried to approve it and the task is removed from the mytask and grouptask tab

@Sam

Hello @Aswin ,
please make sure you use correct approach,if you want to update or save you can use like this (eg:alpha.co.update(“fundData”, arr) or local etc) please make sure your setup is correct and make the appropriate changes

could please explain this I didn’t understand.

what is this funData and arr and where should i write this in the custom code before the case service ?? @Sam

Hello @Aswin ,
It was just an example — you can replace the data with your own.
Internally, only alpha.co is used; the "fundData" and arr in the example are placeholders.
You need to use update for saving or updating your data. That’s what I meant

Ok so you are saying that before calling the case decision and case update i need to do something like this in a custom code and call the case services. is that what you mean @Sam ?

this is what i was doing right now.

@Sam

Hello @Aswin ,
if you want to update use alpha.co.update(“decision_status.underwriting_approved”,true)