如何设置默认列表用户任务受理人任务Alfresco activiti与Java支持

时间:2016-08-09 15:08:04

标签: workflow alfresco activiti

我试图将任务受理人中的用户设置为工作流程。这是我的代码:

 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>

错误是:无法在变量&#39; wfav_assigneValidators&#39;中反序列化对象。

有没有人得到这个错误?

1 个答案:

答案 0 :(得分:0)

我有一个isssu,我只是改变

      List<ActivitiScriptNode> 

      ActivitiScriptNodeList