Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trigger Event

1 REPLY 1
Reply
Message 1 of 2
amitnkukanur
271 Views, 1 Reply

Trigger Event

Hello Everybody,

 

I am doing a customization in Vault Professional 2013 where application revolved around triggers. My question is how to trigger a event when a file is added to vault.

 

This will not run inside Vault, but will run as windows service.

 

If some one helps me, will be helpfull.

 

rgds

Amit

Senior Software Engineer
1 REPLY 1
Message 2 of 2
martin.weiss
in reply to: amitnkukanur

hello Amit,

you could trigger a new AddFile event inside VaultClient, but because you want to run a windows service, you need eventHandlers.

I think an eventHandler is loaded from VaultClient and other vault applications too (JobProcessor, inventor with vault addin, acad with vault addin, ...).

But your Windows service should load the eventHandler too.

 

In the following blog post should give you more information about a simple eventHandler and the AddFile event:

http://blog.coolorange.com/2013/03/11/eventhandler-and-replication-best-practice/

 

Because you want that the eventHandler is loaded only in your windows service, you can give a look to this post too (section 1 )

http://blog.coolorange.com/2012/07/26/working-with-event-handlers/

 

In both posts you should find relevant code snippets too 🙂

 

Best Regards
Martin

coolOrange
www.coolorange.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report