ARTIFACT_SAVED Event in DNG is going for endless loop for updating an attribute value in Doors Next Extension
Hello,
One answer
I would consider this a "recursion" where a save is caught and an update (a save) is performed, which causes another trigger, which causes another update and so forth. This would be expected behavior, unless you build a mechanism that detects the update has been done and breaks the recursion.
Comments
Yes it is recursion But I am not understanding why the save event is calling more than once in Doors Next when we modify only one time. Event is captured recursively
If you're saving a value to the attribute that's going to cause another Event ARTIFACT_SAVED. Have you tried changing your code so it doesn't save to the attribute unless the value has changed from what it already is? And ensure that the new value isn't dependent on its previous value else you'll still get recursive changes.