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: 

UpdateFileLifecycleStateEvents.Pre & Post fire but file state does not change

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
tom_angert
675 Views, 2 Replies

UpdateFileLifecycleStateEvents.Pre & Post fire but file state does not change

I'm trying to log some information in a webservice extension when a file changes state.  I subscribe to the Pre and Post events of UpdateFileLifecycleStateEvents.  In most scenarios I can get exactly what I need and things are working well.  I've run into a case where a vault has a property that requires a value.  When the user tries to move a file from Review to Released and the property does not have a value, the Pre and Post events fire and look like the file has successfully transitioned to Released.  After those events fire the Vault Client throws a dialog stating that the file cannot change to the specified state due to errors or restrictions.  The restriction shown is "Some properties do not match pre-defined criteria of transition from 'For Review' to 'Released'; please ensure all properties are in compliance."

 

It seems to me that the Pre/Post for the UpdateFileLifecycleStateEvents shouldn't be firing in this case as the file doesn't actually change state.  Am I missing something here?

 

Thanks.

 

Tom.

 

 

2 REPLIES 2
Message 2 of 3
wayne.brill
in reply to: tom_angert

Hi Tom,

 

I am able to recreate this behavior and logged a ticket with Vault Engineering. I am not finding a work around for it.

 

Thanks,

Wayne



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
gus.petrikas
in reply to: wayne.brill

Hi,

 

Any way to "workaround" this problem? 

 

Thanks.

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

Post to forums  

Autodesk Design & Make Report