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!
Solved! Go to Solution.
Solved by simonsson. Go to Solution.
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?
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?
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. 🙂