Book a Demo

Author Topic: BPMN2.0::Activity Creation  (Read 3591 times)

Drops

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
BPMN2.0::Activity Creation
« on: June 01, 2012, 06:39:07 pm »
Hi,

How do I create a BPMN2.0::Activity through the Automation Interface in such a way that the tagged values are equivalent to a BPMN2.0 Activity element created through the GUI Interface?

The following code creates an BPMN2.0 Activity, but :
Code: [Select]
act = pkg.Elements.AddNew("Activity1", "BPMN2::Activity")
act.Update


The differences are the tagged values. In the GUI Version of a BPMN2.0::Activity are more tagged values and also in a grouped form compared to the Activity created through the API.



qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: BPMN2.0::Activity Creation
« Reply #1 on: June 01, 2012, 08:31:08 pm »
Just a shot in the dark (I'm guessing): probably the BPMN technology has some code inside which traps element creation and does some magic. This might be different between GUI and API creation. You should contact Sparx support (except you get an early answer here from someone else).

q.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: BPMN2.0::Activity Creation
« Reply #2 on: June 04, 2012, 08:26:04 am »
You actually need to use "BPMN2.0::Activity".

Unless I'm mistaken you're getting a BPMN 1.0 Activity.