Vault Customization

Reply
Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 1 of 5 (291 Views)
Accepted Solution

Life Cycle State of File

291 Views, 4 Replies
11-02-2012 11:02 PM

Hello, I am new in vault customisation. I am doing a customisation and to some extent my code is working fine. But now i have to generate/trigger a event when a life cycle state changes from one state to other. 

 

Can any one tell me how to capture a event when life cycle state of file changes from one state to other or if a sample piece  pseudo code will help me a lot

 

 

 

You need to create a class that implements the WebserviceExtension interface.

Take a look at the RestrictOperations sample of the Vault SDK. It's a great sample!

Regards,
Pim

Here is how to debug a custom command.  The same technique can be used for event triggers http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html

 

Also, make sure you DLL is actually loading.  http://justonesandzeros.typepad.com/blog/2012/07/extension-loading-error-logging.html

Distinguished Contributor
psaarloos
Posts: 150
Registered: ‎12-09-2004
Message 2 of 5 (282 Views)

Re: Life Cycle State of File

11-03-2012 12:14 PM in reply to: amitk_189
You need to create a class that implements the WebserviceExtension interface.

Take a look at the RestrictOperations sample of the Vault SDK. It's a great sample!

Regards,
Pim

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 3 of 5 (274 Views)

Re: Life Cycle State of File

11-04-2012 02:56 AM in reply to: psaarloos

Hi psaarloos, thanks for reply. I am still in confusion but how will you trigger a event when life cycle state is changed

Mentor
amitk_189
Posts: 242
Registered: ‎12-15-2011
Message 4 of 5 (264 Views)

Re: Life Cycle State of File

11-05-2012 12:16 AM in reply to: amitk_189

I found the link and this 

http://justonesandzeros.typepad.com/blog/2011/05/solving-the-four-eyes-problem.html  and am working on it.

 

But one small question is how you execute it in debugging mode. I am trying the cursor in debugging mode on Load event. Any idea how to do this

Employee
Redmond.D
Posts: 814
Registered: ‎12-12-2006
Message 5 of 5 (244 Views)

Re: Life Cycle State of File

11-05-2012 02:07 PM in reply to: amitk_189

Here is how to debug a custom command.  The same technique can be used for event triggers http://justonesandzeros.typepad.com/blog/2010/04/debugging-a-custom-command.html

 

Also, make sure you DLL is actually loading.  http://justonesandzeros.typepad.com/blog/2012/07/extension-loading-error-logging.html



Doug Redmond
Software Engineer
Autodesk, Inc.
http://justonesandzeros.typepad.com/

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!