/** * Set the form mappings Model for this {@link BusinessArchive}. * <p> * This allows to map tasks and process to internal forms or external pages, so that . * <p> * * @param formMappingModel * The model containing the form mappings for this process definition. * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder setFormMappings(final FormMappingModel formMappingModel) { entity.setFormMappings(formMappingModel); return this; }
/** * Set the form mappings Model for this {@link BusinessArchive}. * <p> * This allows to map tasks and process to internal forms or external pages, so that . * <p> * * @param formMappingModel * The model containing the form mappings for this process definition. * @return * the same {@link BusinessArchiveBuilder} in order to chain calls */ public BusinessArchiveBuilder setFormMappings(final FormMappingModel formMappingModel) { entity.setFormMappings(formMappingModel); return this; }
@Override public boolean readFromBarFolder(final BusinessArchive businessArchive, final File barFolder) throws IOException { final File file = new File(barFolder, FORM_MAPPING_FILE); if (file.exists()) { final byte[] content = IOUtil.getContent(file); try { businessArchive.setFormMappings(new FormMappingModelMarshaller().deserializeFromXML(content)); } catch (JAXBException | SAXException e) { return false; } } return true; }
@Override public boolean readFromBarFolder(final BusinessArchive businessArchive, final File barFolder) throws IOException { final File file = new File(barFolder, FORM_MAPPING_FILE); if (file.exists()) { final byte[] content = IOUtil.getContent(file); try { businessArchive.setFormMappings(new FormMappingModelMarshaller().deserializeFromXML(content)); } catch (JAXBException | SAXException e) { return false; } } return true; }