• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Abhishek Tanwar

I build web & mobile experiences

  • HOME
  • BLOG
  • CONTACT ME
  • DISCLAIMER & COPYRIGHTS
You are here: Home / Uncategorized / Migrate BPMN 1.0 Models to 2.0 Model

Migrate BPMN 1.0 Models to 2.0 Model

November 6, 2014 by Abhishek Tanwar

Hello guys,

I was currently learning and working on the EA business processes using EA tool (9.1 version.) I had some old diagrams and when I created new ones, some got created with 1.1 BPMN and some by BPMN 2.0 version of business processes.

If you are familiar with the notation, you will know that the notations of all three are different in terms of representation and the properties that can be set. I prefer 2.0 version.

Now, in order to set all to 2.0, it is not direct. So setting up a procedure for all of you who might need it in case you end you in this situations.

 

Assume that you have 1.0, 1.1 and 2.0 variations of the diagrams and you want all to be in 2.0 version, follow the below procedure:

  1. Run Migration Utility to Migrate all 1.0 to 1.1 version of BPMN
  2. Run Migration Utility to Migrate all 1.1 to 2.0 version of BPMN

For your reference attaching the reference to script from “http://www.sparxsystems.com/”

 

Migrate BPMN 1.0 to 1.1

 

Sub MigrateElement (sGUID, lngPackageID)

Dim proj as EA.Project

set proj = Repository.GetProjectInterface

proj.MigrateToBPMN11 sGUID, “BPMN”

‘refresh the model

If lngPackageID<>0 Then

Repository.RefreshModelView (lngPackageID)

End If

End Sub

Sub MigrateSelectedItem

Dim selType

Dim selElement as EA.Element

Dim selPackage as EA.Package

 

selType = GetTreeSelectedItemType

If selType = 4 Then ‘means Element

set selElement = GetTreeSelectedObject

MigrateElement selElement.ElementGUID, selElement.PackageID

MsgBox “Complete”,0,”BPMN 1.1 Migration”

ElseIf selType = 5 Then ‘means Package

set selPackage = GetTreeSelectedObject

MigrateElement selPackage.PackageGUID, selPackage.PackageID

MsgBox “Complete”,0,”BPMN 1.1 Migration”

Else

MsgBox “Select a Package or Element in the Project Browser to initiate migration”,0,”BPMN 1.1 Migration”

End If

End Sub

Sub Main

MigrateSelectedItem

End Sub

 

Main

 

 

Migrate BPMN 1.1 to 2.0

 

Sub MigrateElement (sGUID, lngPackageID)

Dim proj as EA.Project

set proj = Repository.GetProjectInterface

proj.Migrate sGUID, “BPMN1.1”, “BPMN2.0”

‘refresh the model

If lngPackageID<>0 Then

Repository.RefreshModelView (lngPackageID)

End If

End Sub

 

Sub MigrateSelectedItem

Dim selType

Dim selElement as EA.Element

Dim selPackage as EA.Package

selType = GetTreeSelectedItemType

If selType = 4 Then ‘means Element

set selElement = GetTreeSelectedObject

MigrateElement selElement.ElementGUID, selElement.PackageID

MsgBox “Element Migration Completed”,0,”BPMN 2.0 Migration”

ElseIf selType = 5 Then ‘means Package

set selPackage = GetTreeSelectedObject

MigrateElement selPackage.PackageGUID, selPackage.PackageID

MsgBox “Package Migration Completed”,0,”BPMN 2.0 Migration”

Else

MsgBox “Select a Package or Element in the Project Browser to initiate migration”,0,”BPMN 2.0 Migration”

End If

End Sub

Sub Main

MigrateSelectedItem

End Sub

Main

 

This can be done using navigating to scripting tab and adding these two scripts. To execute the scripts, select a package and run the script subsequently.

Share this:

  • Facebook
  • X

Like this:

Like Loading...

Filed Under: Uncategorized Tagged With: enterprise architect, migrate BPMN 1.0 to 2.0 diagrams, Upgrade 1.0 to 1.1 BPMN diagrams, upgrade BPMN 1.0 to 2.0

Primary Sidebar

  • Behance
  • Email
  • Facebook
  • GitHub
  • LinkedIn

Popular Posts

How To Integrate React in JSP Application
SaaS, PaaS, IaaS
XQuery highlighting in Notepad++
Standard Design Patterns – Applied to JAVA
XQDT Installation on Eclipse JUNO

Categories

  • Building APIs
  • Building Mobile Apps
  • Building Web Apps
  • Coding Challenges
  • Extensions
  • Fullstack
  • Patterns
  • Tips & Tricks
  • Uncategorized
  • VSCode

Tags

2022 vscode extensions Abstract Factory alienware amazing vscode extensions apple challenges coding coding-challenges Design Patterns dota2 dota2 items dynamic web service call dynamic webservice invocation enterprise integration express flex helpful vscode extensions how to implement mfa in nodejs increasing productivity using vscode integration pattern macro message channel message endpoint message pattern message router message translator messaging mfa offline action processing offline actions in struts pipes and filters PRG in struts react Steam struts System Emulator threads in struts utilities vscode vscode customization vscode extensions vscode productivity extensions xquery xquery 1.0 xquery design principles

Recent Posts

  • 15+ VSCode Extensions To Improve Your Productivity
  • Productivity and Quality Extensions for ReactJS in VSCode..
  • My goto VSCode plugins for 2022…
  • How to enable MFA for your application in Node.JS?
  • Structuring Express Application – How I do it?

Categories

  • Building APIs (8)
  • Building Mobile Apps (1)
  • Building Web Apps (7)
  • Coding Challenges (3)
  • Extensions (1)
  • Fullstack (6)
  • Patterns (8)
  • Tips & Tricks (41)
  • Uncategorized (43)
  • VSCode (2)

Tags

2022 vscode extensions Abstract Factory alienware amazing vscode extensions apple challenges coding coding-challenges Design Patterns dota2 dota2 items dynamic web service call dynamic webservice invocation enterprise integration express flex helpful vscode extensions how to implement mfa in nodejs increasing productivity using vscode integration pattern macro message channel message endpoint message pattern message router message translator messaging mfa offline action processing offline actions in struts pipes and filters PRG in struts react Steam struts System Emulator threads in struts utilities vscode vscode customization vscode extensions vscode productivity extensions xquery xquery 1.0 xquery design principles

Archives

  • August 2023 (1)
  • March 2022 (1)
  • February 2022 (1)
  • November 2020 (1)
  • April 2020 (2)
  • May 2019 (1)
  • April 2019 (1)
  • March 2019 (1)
  • December 2018 (1)
  • July 2018 (4)
  • June 2018 (3)
  • March 2018 (1)
  • May 2016 (1)
  • December 2015 (1)
  • May 2015 (1)
  • April 2015 (2)
  • March 2015 (1)
  • December 2014 (2)
  • November 2014 (2)
  • October 2014 (1)
  • August 2014 (2)
  • July 2014 (1)
  • April 2014 (1)
  • March 2014 (1)
  • February 2014 (2)
  • January 2014 (1)
  • December 2013 (4)
  • November 2013 (4)
  • October 2013 (3)
  • September 2013 (4)
  • August 2013 (2)
  • July 2013 (5)
  • June 2013 (9)
  • May 2013 (6)
  • April 2013 (2)
  • March 2013 (2)
  • January 2013 (1)
  • November 2012 (2)
  • HOME
  • BLOG
  • CONTACT ME
  • DISCLAIMER & COPYRIGHTS

Copyright © 2025

%d