Visual Paradigm supports interoperability with BPMN files, a standard made for data exchange. You can export project data to a BPMN, edit it externally with other software that accepts BPMN. In this chapter, you will see how to export and import BPMN through the command-line interface.
Exporting BPMN
To export BPMN from a project through the command line:
- Browse the scripts folder under the Visual Paradigm installation directory. For Mac users, you can find the scripts folder in the Visual Paradigm package by right-clicking on it and then selecting Show Package Contents. Then look in Contents\Resources\app\scripts for the scripts folder.
- Start the command prompt.
- Execute the script by supplying the required parameters. For example:
ExportBPMN -project C:\Demo\Demo.vpp -out C:\Demo\Output\Sample.xml -diagram “Diagram A” [-vpspecific]Parameter Description Example -project Project path C:\Demo\Demo.vpp -out The file path of BPMN file C:\Demo\Output\sample.xml -diagram The name of the diagram(s) to be exported. You can provide a list of diagrams like “Diagram A” “Diagram B”, or enter “*” to export all diagrams, or enter @diagramlist.txt to let the batch read the diagram list from file diagramlist.txt placed in the bin folder. Diagram A -vpspecific [optional] Generate Visual Paradigm -specific content -vpspecific
Importing BPMN
To import BPMN to a project through the command line:
- Browse the scripts folder under the Visual Paradigm installation directory. For Mac users, you can find the scripts folder in the Visual Paradigm package by right-clicking on it and then selecting Show Package Contents. Then look in Contents\Resources\app\scripts for the scripts folder.
- Start the command prompt.
- Execute the script by supplying the required parameters. For example:
ImportBPMN -project C:\Demo\Demo.vpp -file C:\Demo\input\sample.xmlParameter Description Example -project Project path C:\Demo\Demo.vpp -file The file path of the BPMN file to import C:\Demo\input\sample.xml