Book a Demo

Author Topic: Event generation ordering issue  (Read 3361 times)

trickster60

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
    • View Profile
Event generation ordering issue
« on: April 03, 2012, 11:42:29 am »
I am trying to constrain how users can connect certain connector types that I have defined.

Its easy enough to to do this on creation of the connectors but once done so there is a interesting corner case in preventing an "illegal" change to the connector.

I have to use the EA_OnNotifyContextItemModified to catch the change however it I determin the change is "illegal" then I want to undo that but to undo a change I first need to know the state of the connector before the change. Ok so what I have done is save the relevent information either on creation or if the context is changed (via EA_OnContextItemChanged) This works fine except for the situation where the user selects the end of connector that is currently not in context and moves it all in one go. In this case the EA_OnNotifyContextItemModified event is called before EA_OnContextItemChanged. It would seem logical the order should be the other way around.

Regards
nick.