Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Update File Life Cycle States

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
simonsson
1203 Views, 3 Replies

Update File Life Cycle States

I'm programmatically updating file life cycle states using C#. This works fine with UpdateFileLifeCycleStates-method in the extended document service, but restrictions can occur. Maybe this state change is not allowed for the current users permission level etc. That gives me SoapException with some error code. This is fine aswell, but my question is... Can I check before if any restrictions will occur if I would go on with the life cycle state update?

 

Thanks!

3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: simonsson

As I know, not in Vault environment...

When you say check you mean debug?

Maybe autodesk consulting can help you.

 

Which version of Vault are you using?

Message 3 of 4
simonsson
in reply to: simonsson

By check I mean control and I just found a method that seems to be what I need.

 

GetAllowedFileLifeCycleStateTransitionIds

 

So next step for me is to find a transition id from the two states (from/to) I have and control if it's among those I get from the method above. Any idea about that?

 

Message 4 of 4
simonsson
in reply to: simonsson

GetAllowedFileLifeCycleStateTransitionIds solved my problem and I also found a solution to my other question by matching life cycle definition transition arrays from and to id with my states. 🙂

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

Post to forums  

Autodesk Design & Make Report