Book a Demo

Author Topic: How to locate Activities within a Pool  (Read 3738 times)

osmid

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
How to locate Activities within a Pool
« on: June 27, 2012, 05:04:34 pm »
I have a couple of BPMN diagrams with pools and activities. I need to identify all objects (activities mainly) related to a pool, to have a list of all activities within a pool.

I try to make a "select from t_* " tables, find some element property in JScript (for a pool as well as for a Activity) but all without success. Could you help me, please? Thank you.

Ota

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to locate Activities within a Pool
« Reply #1 on: June 27, 2012, 07:42:04 pm »
Are those BPMN Pools UML swimlanes or UML ActivityPartitions?

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: How to locate Activities within a Pool
« Reply #2 on: June 27, 2012, 08:43:28 pm »
I assume that your pools have the according elements ordered as sub-elements (in the browser they are located inside the pool). In that case it's quite easy: the t_object.Parent_ID of the inside elements matches the t_object.Object_ID of the pool/lane.

For more details see my book Inside EA.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: How to locate Activities within a Pool
« Reply #3 on: June 27, 2012, 09:03:46 pm »
That's the thing.
If the pools are steretoyped ActivityPartitions then they appear in the project browser and the activities can be nested under them.
Although you should still verify that the correct actions are located under the correct partitions. (I think you can move the actions in the project browser without affecting the diagram)

If they are in fact swimlanes then you will have to check the location on the diagram (t_diagramobjects) to find out if an action is located inside a swimlane.

Geert

osmid

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: How to locate Activities within a Pool
« Reply #4 on: June 27, 2012, 11:58:29 pm »
Thanks to both, Geert and qwerty,
    I had to use t_diagramobjects in a script and it works well. Thank you again.

Another problem is - how to share the script in the project simply. I know "export  script/import script" to My Searches only.