![](https://img-blog.csdnimg.cn/20200225135053633.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Teamcenter SOA Service
SOA Serive client
自断经脉
莫现乎隐,莫显乎微;诚于中,形于外。君子必慎其独也。
展开
-
Teamcenter SOA Service : Manufacturing Process Planner : Operation and Activity Creation and Attachm
Problem Statement :1)Attach Form Object To Activity OR Activity To RootActivity//APIs are same only Object provided to APIs are differentHow to do this task in Teamcenter ?refer link1) Attach Fo...转载 2020-02-28 13:19:54 · 354 阅读 · 0 评论 -
SOA Service Client : Update Flow in PERT CHART
Create Link between operation in PERT chart view in Manufacturing Process Planner (For BOP) is using UpdateFlow icon. For detail pleasereferHow do you achieve above using SOA service?// topProce...转载 2020-02-28 13:20:15 · 105 阅读 · 0 评论 -
Teamcenter SOA Service : WorkFlow Submit And Complete with Form Attribute Modifcation
Problem statement :1) Initiate the workflow2) Interact with workflow to provide the input3) Complete the workflowAt the end of this section you will be able to deal with workflow related activiti...转载 2020-02-28 13:20:34 · 395 阅读 · 0 评论 -
Teamcenter SOA Service : Expand BOM
Problem Statement :Given top bom line, you need to expand and store all of it's child line in HashMap.Answer is ...Checkout the below codeLoad property by default when object loaded.Get the item_...转载 2020-02-28 13:17:53 · 433 阅读 · 0 评论 -
Soa Client : Activity Pert Chart
Teamcenter pert chart for activity automatically get create/updated when we create the activities.When we use code to create the activity objects the activities are not linked.To link the activit...转载 2020-02-28 13:21:33 · 132 阅读 · 0 评论 -
SOA Client : Open BOM with packed lines
Problem Statement :Get the packed BOMLines for Particular Item Revision ?Here is the answer:-)...By setting property on bomwindowSteps to follow...i) Open BOM for ItemRevision Please read the...转载 2020-02-28 13:18:21 · 189 阅读 · 0 评论 -
Teamcenter SOA Client : Use case for BOM creation
Scenario:Create a BoM structure under multiple part revisions already existing in Teamcenter.(eg: Revision A and B already exist in Teamcneter and now creating bom under Revision A and then under re...转载 2020-02-28 13:21:45 · 337 阅读 · 0 评论 -
SOA Service Client API : Get Object Based On Attribute Map
How to get Item Based on Attribute Information ?API should be used is...DataManagementService coreDMS = DataManagementService.getService(connection);GetItemFromAttributeResponse res = coreDMS.g...转载 2020-02-28 13:17:25 · 105 阅读 · 0 评论 -
SOA Service Client : Object Property Policy
How to set Object Property Policy ?Object Property policy indicates the list of attributes to be loaded when object is fetched from Teamcenterprivate static void setObjectPropertyPolicy(){ ...转载 2020-02-28 13:21:06 · 139 阅读 · 0 评论 -
SOA Service Client : Pack / Unpack BOM
How to Pack/Unpack BoMCreateBOMWindowsResponse createBOMWindowsResponse = createBOMWindows2(modObjParent); BOMWindow[] bomWindows = getBOMWindows(createBOMWindowsResponse); BOMLine parentBOML...转载 2020-02-27 11:48:11 · 214 阅读 · 0 评论 -
SOA Service Client : Upload File in Teamcenter
How to Upload File into Teamcenter ?private static void importXML(String sFullFilePath, String sSiteId, String sDestSiteId) throws Exception { String sFileName = sFullFilePath.substring...转载 2020-02-27 11:47:26 · 337 阅读 · 0 评论 -
SOA Service Client : Expand GRM Relation
How to Expand GRM Relation for Primary object ?private static void expandGRMRelationsForPrimary(ModelObject[] modelObject, String sRelationName) { com.teamcenter.services.strong.core.Da...转载 2020-02-27 11:46:28 · 127 阅读 · 0 评论 -
SOA Service Client : Get Wherereference
How to Get Where Reference for object in Teamcenter?private static void whereReferenced(ModelObject modObj) { WorkspaceObject[] arrWorkspaceObject = new WorkspaceObject[1]; arrW...转载 2020-02-27 11:45:43 · 128 阅读 · 0 评论 -
SOA Service Client : Set Release status
How to Set Release Status on objects ?private static void setReleaseStatus(ModelObject[] modObjArr, String sReleaseStatus) throws ServiceException{ //com.teamcenter.services.strong.workflow.Work...转载 2020-02-27 11:44:43 · 183 阅读 · 0 评论 -
SOA Service Client : SETPROPERTIES / CHECKOUT / CHECKIN / REFRESH
How to check out objects in Teamcenter ? private static void checkout(ModelObject[] modObjArr) { //com.teamcenter.services.strong.core.ReservationService ReservationService resS...转载 2020-02-27 11:43:54 · 184 阅读 · 0 评论 -
SOA Service Client : Get TC Session Information
How to get TCSession information?private static void getTCSessionInfo() throws ServiceException { //com.teamcenter.services.strong.core.SessionService SessionService sessionServi...转载 2020-02-27 11:41:34 · 157 阅读 · 0 评论 -
SOA Service Client : Set Preference in Teamcenter
How to set preference ?private static void setPreferences2(String sPrefName, String sPrefDesc, String sPrefValue){ SetPreferences2In[] prefSetting = new SetPreferences2In[1]; prefSetting[0] = n...转载 2020-02-27 11:40:19 · 159 阅读 · 0 评论 -
SOA Service Client : Create / Delete Relation In Teamcenter
How to create Relation between objects ?Eg:modObjprimary||_modObjSecondaryprivate static void createRelations(ModelObject modObjprimary, ModelObject modObjSecondary, String sRelationName) {...转载 2020-02-27 11:39:20 · 231 阅读 · 0 评论 -
SOA Service Client : Revise / Delete Item Revision
How to revise the ItemRevision object ?ItemRevision mdlitemrevisionobj=(ItemRevision)getModelObjectsFromUIDs(new String[]{"C0WhFIXAY95QJC"},connection)[0];ItemRevision newItemRev = null;//com.te...转载 2020-02-27 11:38:04 · 222 阅读 · 0 评论 -
SOA Service Client : Global Alternate
How to add/remove Global Alternate using SOA Service?//Consider modObj1 ->part to which global alternate is to be added//Consider modObj2 -> Alternate part//Alternate part can be multipleHow...转载 2020-02-26 13:58:20 · 115 阅读 · 0 评论 -
SOA Service Client : Create Relation Between Manufacturing Objects
Dealing with Manufacturing process planHow do you create relation between manufacturing objects ?Important steps are1)Open context2)Create Relation2)Save BOM Window3)Close ContextOpen Contextc...转载 2020-02-26 13:55:48 · 229 阅读 · 0 评论 -
SOA Serive Client : WorkFlow service in Teamcenter
How about submiting the objects to workflow ?//connection -> TC connection objects//WorkflowService is from package com.teamcenter.services.strong.workflowWorkflowService wfService = WorkflowS...转载 2020-02-26 13:50:21 · 232 阅读 · 0 评论 -
SOA Serivce Client : Get Unit Effective revision for Item
How to get Unit effective revision for Particular item?What is unit effective revision?Answer : The revision of Item which is effective for Particular Unit numberEg: Item_XZ |__ItemRevisionX...转载 2020-02-25 14:27:48 · 154 阅读 · 0 评论 -
SOA Service Client : Download Dataset from Teamcenter
How about downloading file present in Dataset ?Consider we have UID for dataset which is to be downloaded i.e its named reference is to be downloadedGet the Model object from UIDModelObject[] mod...转载 2020-02-25 14:25:10 · 631 阅读 · 1 评论 -
SOA Service client: Change Object Ownership
How about changing project ownership ?In data Migration you create the Teamcenter object using DBA user due to all accessbut it may required that created object should belong to other user and group...转载 2020-02-25 14:06:44 · 155 阅读 · 0 评论 -
SOA Service Client : Delete Children from BOM
How to delete all the lines/children for give itemrevision ?public void deleteAllBOMLines(Connection connection,ItemRevision parentItemRev) throws Exception{ ArrayList bomWindowAndLine = ...转载 2020-02-25 14:22:40 · 179 阅读 · 0 评论 -
SOA Serive client: Assign Project to object
How about assigning project to object ?What you need is1) Object to which project to be assigned //Get the object by UIDs using API loadObjects belong to class DataManagementService2) Project ->...转载 2020-02-25 14:00:28 · 199 阅读 · 0 评论 -
SOA Service client:Get Object by UIDs
Sometimes for testing purpose you require object from TCHow to get object from TC when you have UID ?1) Create method as below method name depends on you2) 1- parameter ->Array Of UIDs fo...转载 2020-02-25 13:54:14 · 122 阅读 · 0 评论 -
SOA Service Client : Get Attributes on Item/Item Revision Objects
How to get the revision list if we have item object ?//localObject1 is Item objectString[] arrAttributes = new String[] { "revision_list"};ModelObject arrModelObjects[]= new ModelObject[1];arrMo...转载 2020-02-25 14:20:56 · 196 阅读 · 0 评论 -
SOA Service Client : Creating BOM
Creating BILL OF MATERIAL require1) Opening BOMWINDOW2) Adding Children3) Saving BOM Window4) Closing BOM WindowOpening BOMWINDOW//To open BOMWindow we require object which will be topline after ...转载 2020-02-25 14:14:43 · 396 阅读 · 1 评论 -
Teamcenter SOA Clinet : Remove Reference from Dataset
Here we will understand the apis used for removing the named references from Datasetimport com.teamcenter.services.strong.core.DataManagementService;import com.teamcenter.services.strong.core._200...转载 2020-02-25 13:49:42 · 383 阅读 · 0 评论 -
SOA Service Client : Revision Rule and Object Property Policy
Object property policy is used to define what default properties are to be loaded when object is returned from TeamcenterPolicy files are available at location TC_DATA/soa/policies/policyName.xmlRev...转载 2020-02-25 14:11:28 · 151 阅读 · 0 评论