How to delete or change SetLifeCycle to 'deleted' using php API
Hello, i'm trying to change the SetLifeCycle to deleted in a document or send this doc to de trash but I don't knwo how I can do it. Any idea? I'm using nuxeo 5.8
0 votes
1 answers
1866 views
Document.SetLifeCycle expects a transition as parameter
thank you, I can do it with this code,I leave the code here in case it can be useful for someone:
$lo_resposta = $lo_sessio->newRequest("Document.SetLifeCycle")
->set('input', 'doc:' . $ls_uid)
->set('params', 'value', 'delete')
->set('params', 'xpath', 'ecm:lifeCycle')
->sendRequest();
12/23/2016