Book a Demo

Author Topic: How to detect BPMN Pool or Lane orientation?  (Read 4456 times)

Mhatch

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
How to detect BPMN Pool or Lane orientation?
« on: October 15, 2013, 10:24:07 am »
I am using scripts to re-create diagrams in Visio.  

While creating BPMN diagrams, the Pool and Lane objects have an orientation that can be changed by clicking the little widget on the side of the object, moving the Pool header from the left side to the top of the object.  

How can I tell from the object model which orientation the object is in?  

I have examined the SwimlaneDef objects, and these do not apply to BPMN swimlanes (not populated) - SwimlaneDef is only valid when swimlanes are added to the diagram by right clicking and selecting 'Swimlanes and Matrix'.
I have also looked in the TaggedValue and CustomProperties collections, and cannot seem to find any attribute that indicates orientation.

Thanks,
-Mike

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: How to detect BPMN Pool or Lane orientation?
« Reply #1 on: October 15, 2013, 10:35:06 am »
Look in the t_diagramobjects.ObjectStyle field in the database. The property is "VPartition".
The Sparx Team
[email protected]

Mhatch

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Re: How to detect BPMN Pool or Lane orientation?
« Reply #2 on: October 15, 2013, 11:06:46 am »
Thanks for the quick response!  From the object model, DiagramObject.Style indeed has the data you described.  I did not see the 'VPartition' attribute at the end of the Style string.  

Thanks again.