Affects Version/s: 5.7.3-SNAPSHOT
Fix Version/s: 5.7.3
Component/s: Excel Export
Advanced XML Parser is now available in the importer repository and
can be used by scan importer. This task aim to improve it.
During the parsing you may need to import the file you are parsing into the document being created. So now the file is available into your mvel expression as source.
If you give :
- a File, to the service, source will be this File object
- an InputStream, source will be this InputStream
You can also give a map when you start importer that will be added into the mvel context:
public List<DocumentModel> importDocuments(DocumentModel root, File source, Map<String, Object> mvelContext)
public List<DocumentModel> importDocuments(DocumentModel root, InputStream xmlStream, Map<String, Object> mvelContext)