if (task != null) {
getWindow().executeJavaScript("Liferay.trigger('processtool.bpm.assignProcess', '"
+ task.getProcessInstance().getInternalId() + "');");
getWindow().executeJavaScript("vaadin.forceSync();");
Window w = new Window(task.getProcessInstance().getInternalId());
w.setContent(new ProcessDataPane(getApplication(), session, i18NSource, task, new WindowProcessDataDisplayContext(w)));
w.center();
getWindow().addWindow(w);
w.focus();
}