As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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.