Wednesday, 22 March 2017

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 activity you need to set predecessor for the activity and in turn you create the per chart 

Code section to set the predecessor for the activity is 

Activityfolderinfo     = new MEActivityFolderInfo[1];
Activityfolderinfo[0]    = new MEActivityFolderInfo();
Activityfolderinfo[0].activity  = (MEActivity) meactivityOrFormObject;
Activityfolderinfo[0].predecessors  = new MEActivity[]{ (MEActivity) auditInterface.getPinnedObject( spinkeypredecessoractivity ) };
       
createOrUpdateMEActivityFoldersResponse = dataManagementService.createOrUpdateMEActivityFolders(Activityfolderinfo);