Hi!
I am creating a hook that triggers a workflow when it detects a specific family being placed in the model. Initially, I built the logic using the doc-changed.py hook and it worked perfectly until I realized I had to start and commit a transaction. Since doc-changed is read-only, I am unable to do that.
I tried the same with doc-updater which uses the IUpdater interface allowing me to piggyback on the current transaction. However, it does not respond to new elements being created. It only works when existing elements are modified. Is there any way I can subscribe the IUpdater interface to work for element creation - similar to the doc-changed hook?
Also, if this is possible can it directly be done in the doc-updater hook file itself?