2017-01-27 9 views

답변

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

안녕하세요, 감사합니다. 워크 플로 프로세스 API에서 가져 오기 RAC를 통해 릴리스 개체를 얻을 수있는 방법이 있습니까? – Diksha