How to set a attribute in feel before returning from a function

Hi All,
I have a DMN BKM (function) defined in my DMN. The function has a context defined…

function (return response | input a,b,c)
step1-5 : define few decision table column headers | for example step 1 → var : a.attribute
step6 - calling decision table using the context variables as column headers and returning ‘response’
step7 - the actual result… before i return the response, I need to set response.status = done

Is there any function or syntax in feel language to set a value in an object and return it?

the actual need is in step7 is response.status = a.someattribute

Hi @ravim786 :wave:

Regarding your question:

No. FEEL is based on immutable object types.

Can you share your full example? (i.e. the DMN file)
Maybe, we can find another way to solve the issue.

Best regards,
Philipp