Book a Demo

Author Topic: Object change hooks?  (Read 2855 times)

babdo

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Object change hooks?
« on: June 12, 2020, 08:00:12 pm »
Hi,

Is there an automation interface that gives a hook/event upon change of an element/object and gives the exact change that is being done to the element?

I'm trying to enforce some kind of a workflow for some elements/objects types (requirements for example), for this I need to get notified with the change that is being done, because not all changes shall trigger a workflow change.
For example, the following are two use cases, I want to enforce a workflow change for the first use case, but not for the second:
1- The Name or the Notes of an element (requirement for example) has been changed.
2- A dependency is created from element A to element B, In this case I do not want to enforce any workflow on element B.

I think the way to achieve that is by getting notified of both the element being changed and the exact change that is made in order to decide whether or not that change require a workflow action.

I know about EA_OnNotifyContextItemModified, but this only gives an object uuid, it does not give that change.

Is there an automation interface that gives a hook/event upon change of an element/object and gives the exact change that is being done to the element?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Object change hooks?
« Reply #1 on: June 12, 2020, 08:14:53 pm »
You have to keep track the selected element yourself ( in OnContextItemChanged), and then compare it in EA_OnNotifyContextItemModified

Geert