Rest API : condition expression returns non-Boolean: result has class java.lang.String and not java.lang.Boolean

SMELoanFlow.bpmn (7.6 KB)

Hi Team ,
I have created one processflow(process flow attached) and I have a diverging gateway ,configured some condition.
Using rest api’s i am executing the process flow(screenshots attached ). When i invoke complete task from that particular task(Business Approval). I am facing below error.

{
“type”: “RestException”,
“message”: “Cannot complete task 46a005d4-8d82-11ec-93c2-8c8d28457708: condition expression returns non-Boolean: result has class java.lang.String and not java.lang.Boolean”

}

Can you please guide me to find the issue ?

Hi @Mariselvam_Murugesan ,

Are you sure you’ve shared the same .bpmn file that the engine is executing in your case? It looks like typo in expression on the conditional flow going out from the gateway, but both attached process model and your request looks fine.

Which Camunda version are you using?

Hi @Adam,

Thank You for your reply.

You are right , My newer .bpmn was not reflected in runtime. I found and corrected now . It works fine.

Thank You for the support.

Thanks & Best Regards
Mariselvam Murugesan.