package com.pjb.springbootjjwt.test; import com.teamcenter.clientx.AppXSession; import com.teamcenter.clientx.Utils; import com.teamcenter.soa.client.model.ModelObject; import com.teamcenter.soa.client.model.strong.User; public class TestCreateWorkFlow { private static AppXSession tcSession; private static User tcUser; public static void main(String[] args) { if(tcSession == null){ tcSession = new AppXSession("http://plmserver:7001/tc"); } try{ if(tcUser == null) { tcUser = tcSession.login("admin","admin"); } }catch (Exception ex){ ex.printStackTrace(); } //Utils.findUser(AppXSession.getConnection(),"zc"); try { //Utils.changeOwnershipModelObject(AppXSession.getConnection(),"zc",""); } catch (Exception e) { e.printStackTrace(); } } }