如何设置默认列表用户任务分配任务Alfresco活动与java支持



我正在尝试将任务分配中的用户设置为工作流。下面是我的代码:

 List<ActivitiScriptNode> listPersonsScriptNode = new new ArrayList<ActivitiScriptNode>();
 for (AssociationRef association : listePerosnsAssociation) {
 listPersonsScriptNode.add(new ActivitiScriptNode(association.getTargetRef(), serviceRegistry));
                }
        workflowParameters.put(AssignationWorkflowModel.ASPECT_ASSIGNEVALIDATORS,
            (Serializable) listPersonsScriptNode);
        WorkflowPath wfPath = workflowService.startWorkflow(wid, workflowParameters);

和我的模型是:

       <type name="wfav:assignationValideurTask">
             <parent>bpm:workflowTask</parent>
            <properties>
             </properties>
         <mandatory-aspects>
            <aspect>wfav:assigneValidators</aspect>
        </mandatory-aspects>
    </type>
        <aspects>
            <aspect name="wfav:assigneValidators">
        <associations>
            <association name="wfav:assigneValidators">
                <source>
                    <mandatory>false</mandatory>
                    <many>false</many>
                </source>
                <target>
                    <class>cm:person</class>
                    <mandatory>true</mandatory>
                    <many>true</many>
                </target>
            </association>
        </associations>
    </aspect>

错误是:无法反序列化变量'wfav_assigneValidators'中的对象。

有人得到这个错误之前??

我有一个问题,我只是改变

      List<ActivitiScriptNode> 

      ActivitiScriptNodeList

最新更新