2016-08-09 4 views
0

작업 할당 자의 사용자를 워크 플로에 설정하려고합니다. 여기에 내 코드 :기본 목록 사용자 작업 지정자 작업을 설정하는 방법 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'에서 객체를 직렬화 할 수 없습니다.

누군가이 오류가 발생 했습니까 ?? 내가 isssu이

답변

0

, 난 그냥 변경

 List<ActivitiScriptNode> 

 ActivitiScriptNodeList