Trying to work out how to import a large number of BPMN 2 models into ARIS and was wondering if there is a way to create a script/report to carry out the activity.
Can see in the help there is a method for XML import and also for Visio import. But there does not appear to be a means to import BPMN 2 files en masse. Happy to be corrected
Kay Fischbach on
Haven't used it myself, but take a look at "API for reports" -> "Report component interfaces" -> "ModelInterchange" -> "ModelInterchange" -> "startBpmnImport(...)".
The description of that method says "Starts the import of one or more BPMN2 models from a file", which sounds exactly like what you're looking for.
To transfer the files from the client to the server use
Dialogs.getFilePath(can be configured so you can select multiple files with a single dialog). The returnedSelectedFilefrom the result array have agetDatamethod that return abyte[]. Thisbyte[]can then be used for theModelImportOptions.setFileInBytes(...)(you need an instance ofModelImportOptions- created withModelInterchange.createImportOptions()- forModelInterchange.startBpmnImport(...)).