2017-01-27 2 views

Répondre

0
public void setReleaseStatus(){ 
     WorkflowService serviceWF = WorkflowService.getService(session); 

     ReleaseStatusInput relStInput = new com.teamcenter.services.rac.workflow._2007_06.Workflow.ReleaseStatusInput(); 
     relStInput.objects = new TCComponent[]{subLine}; 


      ReleaseStatusOption relStOptions = new com.teamcenter.services.rac.workflow._2007_06.Workflow.ReleaseStatusOption(); 
     /* // if we want delete TCReleased 
      relStOptions.existingreleaseStatusTypeName = "TCReleased"; 
      relStOptions.newReleaseStatusTypeName = ""; 
      relStOptions.operation = "Delete"; // or Append or Replace 
*/   
      // if we want set status TCReleased 
      relStOptions.existingreleaseStatusTypeName = ""; 
      relStOptions.newReleaseStatusTypeName = "TCReleased"; 
      relStOptions.operation = "Append"; 

      relStInput.operations = new Workflow.ReleaseStatusOption[]{relStOptions}; 

      try { 
      serviceWF.setReleaseStatus(new Workflow.ReleaseStatusInput[]{relStInput}); 
     } catch (ServiceException e) { 
      // TODO Auto-generated catch block 
      e.printStackTrace(); 
     } 
    } 
+0

Salut, Merci. En dehors de l'API de processus de workflow Y a-t-il un moyen d'atteindre l'objet de version via RAC? – Diksha