Importing BPMN Model Elements
BPMN import allows you to import BPMN model elements from XML files with the BPMN file type. You can subsequently access the imported elements using a separate plug-in.
Importing BPMN Model Elements from a BPMN-XML File
Import Supports
There are two methods to help with import:
-
Import Wizard
Import BPMN files with settings you make using the wizard.
-
Your Own Import Configurations
Import BPMN files with settings which you have set up, tested and stored so that they can be reused in the application configurations.
Prerequisites
You can only import model elements defined by the BPMN standard.
You require a role with access rights for the model to be imported if you wish to import BPMN data.
The Business Modeling method must be assigned to at least one profile that is imported in the model.
How to Proceed
You import BPMN model elements from BPMN XML files that you have exported from Innovator or other tools.
UTF-8 is expected as the import encoding.
Diagrams are also supported upon import. Original node positions and edge points are imported, as long as you have not set a scaling.
BPMN diagrams exported from Innovator do not look identical after import as structure definitions and text wrapping is not adopted.
Participants, processes, lanes and subprocesses are minimized in size and aligned top-left for diagrams from other tools. Node colors, fonts and font sizes are not supported.
The BPMN import supports resources. An existing resource with the same name is assigned upon import. If not, then a new resource is created. Innovator only supports one resource at the process.
The wizard help will show you in detail how to proceed.
Setting-Up Automatic Post-Processing of Imported Elements
You can automatically start post-processing of the results upon successful import. You require your own plug-in for this which handles the imported elements with your individual code.
Add a project reference for the BPMNImport plug-in in the project file for this:
<ProjectReference Include="..\BPMNImport\Plugins.BPMNImport.csproj"> <Private>false</Private> </ProjectReference>
You also require <Reference Include> for
-
MID.Innovator.Util
-
MID.Innovator.API
Register an event in the IApplicationComponent.RequestHandler in the RequestType.OpenModel in your plug-ins component file:
BpmnFactory.PostImport += PostImport;
The imported elements appear in the PostImport event handler. You can run any code in these elements which is contained in your plug-in.
The BPMN Import wizard automatically starts post-processing, as does the Bpanda Connector and via the API methods Import the MID.Innovator.Plugins.BPMNImport.Public.BpmnImport class.
Further Information