Hello,
I want to set a Document var of type blob
with a workflow var, in an automation chain, after selection of this var in a workflow form.
This workflow var is not mandatory and that is the problem.
If I try "Update Property" but got an object is null exception and nuxeo was in a right mess.
I try to set this variable with a condition like setting workflow var,
But nuxeo tells me that the update properties only allow "scalar"...
@{WorkflowVariables["wkToto"] != null?WorkflowVariables["wkToto"]:""}
So I try "run script" but I couldn't get the "current document"... 😞
if (WorkflowVariables["wkToto"] != null){
Document.doc.setPropertyValue("amoi:toto",WorkflowVariables["wkToto"]) ;
}
Do you know how to SET a document BLOB even if it's NULL with workflow var ?
thanks