jmix 1.6.2
понадобилось расшириться от ProcessInstanceEditRuntimeFragment
@UiController("bpm_ExtProcessInstanceEditRuntimeFragment")
@UiDescriptor("ext-process-instance-edit-runtime-fragment.xml")
public class ExtProcessInstanceEditRuntimeFragment extends ProcessInstanceEditRuntimeFragment {
@Autowired
private AccessManager accessManager;
@Autowired
private Metadata metadata;
@Named("tasksTable.reassignTask")
private BaseAction tasksTableReassignTask;
@Subscribe
public void onAfterInit(final AfterInitEvent event) {
initButtonsSecurity();
}
private void initButtonsSecurity() {
UiSecurityUtils.setActionEnabled(tasksTableReassignTask, accessManager, metadata.getClass(TaskData.class), CrudEntityContext::isUpdatePermitted);
}
}
соответствующий xml
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<fragment xmlns="http://jmix.io/schema/ui/fragment"
messagesGroup="io.jmix.bpmui.screen.processinstance"
extends="io/jmix/bpmui/screen/processinstance/process-instance-edit-runtime-fragment.xml">
<layout/>
</fragment>
но вкладки не перевелись