Book a Demo

Author Topic: EA_OnPostNewPackage: stereotype missing  (Read 3056 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
EA_OnPostNewPackage: stereotype missing
« on: July 16, 2013, 12:28:03 am »
Hi all,


I've got an Add-In which is supposed to do some magic when certain packages are created.
However, when I get EA_OnPostNewPackage the package I retrieve from the repository has no stereotype: neither Package.StereotypeEx nor Package.Element.Stereotype is set. So the magic fizzles.

Curiouser and curiouser, I'm pretty sure I've actually seen the post event work, albeit intermittently. I'm using 10.0.1007 against a SQL Server 2008 repository if that means anything.

It would appear there's a timing issue in the sending of this event, where the event is fired before the package creation has completed.
Has anyone else seen this?

Btw, I tried retrieving the package in my event handler, then immediately calling Update(). EA did not like that one little bit.
The EA_OnPreNewPackage event which is fired just before does include the stereotype so I suppose there's always that ugly brute of a workaround, But Still.

Cheers,


/Uffe
My theories are always correct, just apply them to the right reality.