data.put("model", doimodel);
data.put("contextPath", DOGlobals.PRE_FULL_FOLDER);
data.put("webmodule", DOGlobals.URL);
DOFormModel aFm = (DOFormModel) doimodel;
BOInstance bi = aFm.getData();
if (bi != null && bi.getValue("contextPiUid") != null) {
ProcessInstance pi = ProcessInstance.getProcessInstance(bi
.getValue("contextPiUid"));
if (pi!=null && pi.getProcessTemplate() != null
&& pi.getProcessTemplate().getDoBO() != null) {
String instanceUid = bi.getValue("instance_uid");
if(instanceUid!=null){
data.put("busiBOName", pi.getProcessTemplate().getDoBO().getName());
data.put("instance_uid", instanceUid);
}
}
NodeInstance ni = NodeInstance.getNodeInstanceByID(bi.getValue("contextNiUid"));
if(ni!=null && ni.getNode().getPane()!=null){
data.put("paneModel", ni.getNode().getPane());
}
} else if (aFm.getLinkPaneModel() != null) {
data.put("paneModel", aFm.getLinkPaneModel());