cancel
Showing results for 
Search instead for 
Did you mean: 

On versioning, I want to check document's lifecycle state and change it, if it is in approved state. How can I achieve this?

__5
Champ in-the-making
Champ in-the-making
 
1 REPLY 1

Amir_Buzo
Confirmed Champ
Confirmed Champ

You have to getCurrentLifecycle operation check the current state and then call the operation followLifecycleTransition(). It is better to follow a transition rather then modify it currentLifecycleState. Nuxeo operation do not allow modifying currentLifecycle. As far as i know if the document is in Approved State you can follow only delete transition which delete document. Otherwise you have to define your onwn lifecyle scheme. In the attached image you can discove the transitions and states.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.