Is there any way to assign script variable in expression instead of string and workflow model variables. I am getting error if assign to script variable also the below code is giving error <variable name="pwf_docType" access="write"/> <expression> docType= bpm_package.children[0].type; </expression> Its not recognising bpm_package.children. Appreciate your suggestion