Book a Demo

Author Topic: OnPreNewConnector  (Read 4170 times)

KristoferG

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
OnPreNewConnector
« on: December 08, 2015, 06:56:30 pm »
Hi!

I want to implement a rule in our model that in order to be able to create a connector between two elements, you require edit permissions on both elements (we are using group locking on packages) or else you should get a warning (but can still create it). So I figured that a Work Flow script should be a fairly simple solution. But I cannot see any way to get the elements involved when creating the connector. Is there any?

Or should I implement this in another way?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: OnPreNewConnector
« Reply #1 on: December 08, 2015, 08:52:29 pm »
The Info EA.EventProperties collection provided contains clientId and supplierId. That's what you are after.

q.

KristoferG

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: OnPreNewConnector
« Reply #2 on: December 08, 2015, 09:17:28 pm »
Is that available in a Work Flow script? I see it in the documentation for EA_OnPreNewConnector when developing an add-in, but I cannot figure out how to get it from a Work Flow script.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: OnPreNewConnector
« Reply #3 on: December 08, 2015, 09:55:49 pm »
Sorry, I can't help with workflow scripts.

q.