Author Topic: Migrating from one MDG Technology to another  (Read 3433 times)

Prasanna.h

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Migrating from one MDG Technology to another
« on: January 24, 2012, 08:18:53 pm »
Hi,

I have created BPMN models using MDG Technology specific to my company. Now I want to change them to different MDG Technology models (BPMN1.0)Is there a way we can do it instead of re creating all the models all over again? Please let me know.

Thanks

qwerty

  • EA Guru
  • *****
  • Posts: 13570
  • Karma: +395/-301
  • I'm no guru at all
    • View Profile

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Migrating from one MDG Technology to another
« Reply #2 on: January 26, 2012, 04:33:24 am »
Well as you will see from my many posts on this topic - its not easy. You will need to write some SQL that updates t_xref, t_objectproperties and t_diagram. See below for a sample (for SQL Server)

pdate t_objectproperties set ea_guid = '' where t_objectproperties.Object_ID In
(select t_object.Object_ID from t_object, t_xref where t_object.ea_guid = t_xref.Client and t_xref.Description like '%DBBPMN1.1%')

update t_xref set description = REPLACE (cast(description as nvarchar (max)), 'DBBPMN', 'BPMN')where description like '%DBBPMN%';
update t_diagram set StyleEx = REPLACE (cast(StyleEx as nvarchar (max)), 'DBBPMN', 'BPMN')where StyleEx like '%DBBPMN%';

This in effect rolls me back to a Sparx standard BPMN1.1 profile. I've done this because i then want to run the migrate function to upgrade from 1.1 to 2.0 (ill then have to run further SQL to migrate to the v2 version of my profile).

This will only work if your profile has elements as defined in the Sparx profile - ie Activities, Events, Lanes, Pools etc - ie its an extension of the Sparx profile.
Regards

Jon


Ps backup before - i accept no liability this advice breaks your system!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Migrating from one MDG Technology to another
« Reply #3 on: January 26, 2012, 04:34:59 am »
Sorry forgot a step - after running the update sql re-sync your tagged values (this will repopulate the t_objectproperties.ea_guid column with the correct values).

Regards,

Jon.

qwerty

  • EA Guru
  • *****
  • Posts: 13570
  • Karma: +395/-301
  • I'm no guru at all
    • View Profile
Re: Migrating from one MDG Technology to another
« Reply #4 on: January 26, 2012, 07:37:58 am »
Quote
cast(StyleEx as nvarchar (max))
Thanks for this one. I was missing this in another update I ran on xref as without SQL Server will throw an error.

q.