AnsweredAssumed Answered

deplacer un document

Question asked by ghmus on Sep 24, 2013
Latest reply on Sep 27, 2013 by rguinot
Bonjour ! j'aimerai bien faire un workflow qui deplace le document s'il est approuvé, pour ca j'utilise activiti et j'ai inserer ce script

<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
      <activiti:field name="script">
        <activiti:string>
          if(task.getVariableLocal('scwf_approveRejectOutcome') == 'Approve') {

          var dest = bpm_context.childByNamePath("nv");
          for (var i = 0; i &lt; bpm_package.children.length; i++)
          {
            bpm_package.children.move(dest);
          }
        </activiti:string>
      </activiti:field>
</activiti:taskListener>

mais au niveau de alfresco j'obtien cet erreur :

org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Incompatible type set on field declaration 'script' for class org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript. Declared value has type org.activiti.engine.impl.el.FixedValue, while expecting org.dom4j.Element



comment faire depalcer un document avec activiti?!!

Outcomes