AnsweredAssumed Answered

Workflows add permission

Question asked by ribz33 on Nov 15, 2007
Latest reply on Dec 7, 2007 by federico.tesei
Hi,

i want that a user can valid document. This user must have only Read access on content.
When user valid or reject document, status property change.

This is my task :

<task-node name="ValidationTask">
  <transition name="reject" to="end">
    <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <variable name="bpm_package" access="read,write" />
      <expression>
        bpm_package.children[0].properties["custom:status"]= "Draft";
        bpm_package.children[0].save();
      </expression>
    </action>
  </transition>
</task-node>
I have error Access denied.
I thinked that if i give access read,write on bpm_package this will be enough to save my content but answer seems to be no !

Someone have an idea how i can solve this ?

Outcomes