@Override public void saveToBarFolder(final BusinessArchive businessArchive, final File barFolder) throws IOException { final ActorMapping actorMapping = businessArchive.getActorMapping(); if (actorMapping != null) { try { final byte[] fileContent = new ActorMappingMarshaller().serializeToXML(actorMapping); final File file = new File(barFolder, ACTOR_MAPPING_FILE); IOUtil.write(file, fileContent); } catch (XmlMarshallException e) { throw new IOException("Cannot write Actor Mapping to Bar folder", e); } } }
@Override public void saveToBarFolder(final BusinessArchive businessArchive, final File barFolder) throws IOException { final ActorMapping actorMapping = businessArchive.getActorMapping(); if (actorMapping != null) { try { final byte[] fileContent = new ActorMappingMarshaller().serializeToXML(actorMapping); final File file = new File(barFolder, ACTOR_MAPPING_FILE); IOUtil.write(file, fileContent); } catch (XmlMarshallException e) { throw new IOException("Cannot write Actor Mapping to Bar folder", e); } } }
@Override public void execute() throws SBonitaException { final ActorMapping mapping = getActorMapping(); ActorMappingMarshaller marshaller = new ActorMappingMarshaller(); try { xmlContent = new String(marshaller.serializeToXML(mapping)); } catch (XmlMarshallException e) { throw new SBonitaReadException("Failed to generate xml from actorMapping", e); } }
@Override public void execute() throws SBonitaException { final ActorMapping mapping = getActorMapping(); ActorMappingMarshaller marshaller = new ActorMappingMarshaller(); try { xmlContent = new String(marshaller.serializeToXML(mapping)); } catch (XmlMarshallException e) { throw new SBonitaReadException("Failed to generate xml from actorMapping", e); } }