How to handle response of more than 4000 characters using camunda external task

@Ankur_Rathi You need to pass that variable as Object.

You can JSON stringify that object and pass the type json to the process.

{
    "variables": {
        "aVariablename": {
            "value": "<Serialized Json variable value>",
            "type": "Json"
        }
    }
}

And when retrieving that variable use deserializeValues=false to get the json object value

Refer this post: