Itk 是否可以通过RAC释放Teamcenter中的对象?

Itk 是否可以通过RAC释放Teamcenter中的对象?,itk,Itk,我想复制Iream版本的发布状态并将其粘贴到他们的数据集中。整个过程我可以通过ITK完成,但我希望由RAC完成 您能帮我一个忙吗。您好,谢谢。除了工作流过程API外,有没有其他方法可以通过RAC实现发布对象? public void setReleaseStatus(){ WorkflowService serviceWF = WorkflowService.getService(session); ReleaseStatusInput relStInput

我想复制Iream版本的发布状态并将其粘贴到他们的数据集中。整个过程我可以通过ITK完成,但我希望由RAC完成


您能帮我一个忙吗。

您好,谢谢。除了工作流过程API外,有没有其他方法可以通过RAC实现发布对象?
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();
        }
    }