@Override protected void onInitialize() { super.onInitialize(); propertiesStructureTable.addCommand(new EditODocumentCommand(propertiesStructureTable, getModeModel())); propertiesStructureTable.addCommand(saveODocumentCommand = new SaveODocumentCommand(propertiesStructureTable, getModeModel())); }
@Override protected void onConfigure() { super.onConfigure(); setVisibilityAllowed(OSecurityHelper.isAllowed(documentmodel.getObject(), OrientPermission.UPDATE)); }
@Override protected void onInitialize() { super.onInitialize(); propertiesStructureTable.addCommand(new EditODocumentCommand(propertiesStructureTable, getModeModel())); propertiesStructureTable.addCommand(saveODocumentCommand = new SaveODocumentCommand(propertiesStructureTable, getModeModel())); }
@Override protected void onInitialize() { super.onInitialize(); propertiesStructureTable.addCommand(new EditODocumentCommand(propertiesStructureTable, getModeModel())); propertiesStructureTable.addCommand(new SaveODocumentCommand(propertiesStructureTable, getModeModel()){ @Override protected void onInitialize() { super.onInitialize(); setLabelModel(new ResourceModel("command.saveAndStart")); }; @Override public void onClick(Optional<AjaxRequestTarget> targetOptional) { super.onClick(targetOptional); ODocument doc = formDocumentModel.getObject(); Map<String, Object> variables = new HashMap<>(); variables.put(formKey.getVariableName(), doc.getIdentity().toString()); BpmPlatform.getDefaultProcessEngine().getRuntimeService() .startProcessInstanceById((String)ProcessDefinitionFormWidget.this.getModelObject().field("id"), variables); setResponsePage(new ODocumentPage(doc)); }; }.setForceCommit(true).setBootstrapType(BootstrapType.SUCCESS)); }
@Override protected void onInitialize() { super.onInitialize(); propertiesStructureTable.addCommand(new EditODocumentCommand(propertiesStructureTable, getModeModel())); propertiesStructureTable.addCommand(saveODocumentCommand = new SaveODocumentCommand(propertiesStructureTable, getModeModel()){ @Override public void onClick(Optional<AjaxRequestTarget> targetOptional) { super.onClick(targetOptional); associateTaskWithDocument(); }; }.setForceCommit(true)); propertiesStructureTable.addCommand(new CompleteTaskCommand(propertiesStructureTable, getModel(), getModeModel(), formKey)); }
structureTable.addCommand(new EditODocumentCommand(structureTable, getModeModel())); structureTable.addCommand(new SaveODocumentCommand(structureTable, getModeModel()));
this.pdModel = pdModel; this.modeModel = modeModel; addCommand(new EditODocumentCommand(newCommandId(), resourceModel, modeModel)); addCommand(new SaveODocumentCommand(this, modeModel, resourceModel) { @Override