sref.setSiid(scopeId);
sref.setIid(scope.getProcessInstance().getInstanceId().toString());
sref.setName(varName);
XmlDataDAO var = scope.getVariable(varName);
if (var == null) {
throw new InvalidRequestException("VarNotFound:" + varName);
}
{
ByteArrayOutputStream out = new ByteArrayOutputStream();
value.save(out, new XmlOptions().setSaveOuter());
Node value2 = DOMUtils.getFirstChildElement(DOMUtils.stringToDOM(out.toString()));
var.set(value2);
}
Node nval = var.get();
if (nval != null) {
TVariableInfo.Value val = vinf.addNewValue();
val.getDomNode().appendChild(val.getDomNode().getOwnerDocument().importNode(nval, true));
}
return null;