当工作流被批准时,我想将我的文件移动到其他目录,正在使用 activiti,我插入以下代码
<activiti:taskListener event="complete" class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
<activiti:field name="script">
<activiti:expression>if(task.getVariableLocal('scwf_approveRejectOutcome') == 'Approve') {
var dest = bpm_context.childByNamePath("nv");
for (var i = 0; i < bpm_package.children.length; i++)
{
bpm_package.children[i].move(dest);
}</activiti:expression>
</activiti:field>
</activiti:taskListener>
我在露天得到这个错误:
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.JuelExpression, while expecting org.dom4j.Element
我怎样才能用activiti移动我的文档?!!