Book a Demo

Author Topic: BPMN 1.1 Diagrams and Elements  (Read 3117 times)

thea

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
BPMN 1.1 Diagrams and Elements
« on: March 17, 2011, 09:07:16 pm »
Hi, I have a code that was supposed to create a BPMN 1.1 Diagram.  I used the C# Example included in Sparx to get the type of a BPMN 1.1 and it says "Analysis", so that's what I put in my code.  But then, after I open the diagram, the default tollbox that opens with it is the "Analysis" toolbox so I'm assuming that the "Analysis" diagram type is different from "BPMN 1.1".  What type should I use then?  Or, if the initial set of toolbox when opening a diagram doesn't have anything to do with it, what's the correct code so that I could set the toolbox to BPMN 1.1 as well?

Any help is greatly appreciated.

Code: [Select]
EA.Diagram NewDiagram = (EA.Diagram)Package.Diagrams.AddNew(vsPage.Name, "Analysis");
NewDiagram.Update();
---------------------------------------------------------------------------------------------------------------
If your tried 10x and failed, try again.  We'll never know if we'll get it right on our next try.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: BPMN 1.1 Diagrams and Elements
« Reply #1 on: March 18, 2011, 09:00:15 am »
This is a guess: try "BPMN1.1::BPMN". If that doesn't work, contact Sparx Support.
The Sparx Team
[email protected]

thea

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: BPMN 1.1 Diagrams and Elements
« Reply #2 on: March 18, 2011, 03:32:55 pm »
Quote
This is a guess: try "BPMN1.1::BPMN". If that doesn't work, contact Sparx Support.

It worked! Thank you so much!! What about the shapes then? Should I put "BPMN1.1::BPMN::Activity" type for the Activity Shapes???

---------------------------------------------------------------------------------------------------------------
If your tried 10x and failed, try again.  We'll never know if we'll get it right on our next try.