You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
924 B
32 lines
924 B
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();
|
|
}
|
|
}
|
|
}
|