I want to execute an automatic diffusion workflow on an approved document.
(the workflow uses start diffusion date and end diffusion date wrapped in document)
The workflow works : it create proxies, delete them, no problem...
Here is the problem : when the workflow is ending a task (create a proxy or delete a proxy by example), it updates the approved document.... which comes back to project lifecycle state... (because it has been updated)
How to maintain this approved lifecycle state ?
If I correctly annalyze what happens, update occurs when workflow is ending task and remove permissions for task actors : it executes then a "session.saveDocument()" (why by the way ? why not a session.setACP() ?).
I'm not able to find a solution to avoid that... In my opinion, force an update of the state with an output chain doesn't seem really optimal especially as there is automatic versioning on updates...