Book a Demo

Author Topic: Imported Visio Decision element - converting to BPMN Gateway element  (Read 4381 times)

Bumble

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Hi,
I've imported a Visio model into Sparx via the Microsoft Visio Add in and am attempting to convert 'Activity' elements to BPMN Activity and 'Decision' to BPMN Gateway elements via a VB Script.

My script looks to work for Activity :

currentElement.Type = "Activity"
currentElement.StereoTypeEX = "BPMN2.0::Activity"
currentElement.Update

But for the Gateway update, it is not working (BPMN tab does not appear in Element properties and the element does not display in the Browser)
I've tried various combinations, below is the latest :

currentElement.Type = "Gateway"                     
currentElement.StereoTypeEX = "BPMN2.0::Gateway"
currentElement.Update

If someone could point me in the direction of what I'm doing wrong please - that would be fab :-)

Many Thanks
   



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #1 on: July 10, 2019, 09:04:01 pm »
Does not look too bad. What version are you using?

q.

Bumble

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #2 on: July 10, 2019, 09:07:49 pm »
Hi, Version 14.1  (build 1427)  Corporate Edition

Thanks :-)

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #3 on: July 10, 2019, 09:56:31 pm »
Can you tell me where the MDG settings are hidden in V14? This is a real PITA! I know I asked that recently. The forum search (as usual) does not return anything ("V14 MDG" or "14 MDG" -> no results; what??). Also the Search of EA does only show Import/Export and such stuff. But not where to configure the setting. This Is Such A Pain In The Aaaaargggggghhhhhh

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #4 on: July 10, 2019, 09:59:31 pm »
Never mind. Found it. SOMEWHERE at the end of the rainbow.

q.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #5 on: July 10, 2019, 10:12:53 pm »
The issue is
Code: [Select]
currentElement.Type = "Gateway"                     
Just remove that line or replace it with
Code: [Select]
currentElement.Type = "Decision"                     
You don't need to alter the types in any case. Just apply the stereotype.

q.

Bumble

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Imported Visio Decision element - converting to BPMN Gateway element
« Reply #6 on: July 10, 2019, 10:18:24 pm »
Just tried it and it worked :-)

Thanks qwerty for your help - much appreciated  :) :) :)