SOA开旁路代码

public static void byPass(boolean bypass) {

com.teamcenter.services.loose.core.SessionService sessionservice = com.teamcenter.services.loose.core.SessionService

.getService(AppXSession.getConnection());

com.teamcenter.services.loose.core._2007_12.Session.StateNameValue astatenamevalue[] = new com.teamcenter.services.loose.core._2007_12.Session.StateNameValue[1];

astatenamevalue[0] = new com.teamcenter.services.loose.core._2007_12.Session.StateNameValue();

astatenamevalue[0].name = "bypassFlag";

astatenamevalue[0].value = Property.toBooleanString(bypass);

com.teamcenter.soa.client.model.ServiceData servicedata = sessionservice

.setUserSessionState(astatenamevalue);

}

你可能感兴趣的:(Teamcenter开发)