use of com.amalto.workbench.webservices.WSTransformerV2PK in project tmdm-studio-se by Talend.
the class AllProcessesNamesHolder method getExternalInfo.
@Override
public String[] getExternalInfo() {
if (service == null) {
return new String[0];
}
List<WSTransformerV2PK> transformerPKs = null;
try {
// $NON-NLS-1$
transformerPKs = service.getTransformerV2PKs(new WSGetTransformerV2PKs("")).getWsTransformerV2PK();
} catch (Exception e) {
return new String[0];
}
List<String> processes = new ArrayList<String>();
if (transformerPKs != null) {
for (WSTransformerV2PK pk : transformerPKs) {
if (pk.getPk() != null && pk.getPk().length() > 0) {
processes.add(pk.getPk());
}
}
}
return processes.toArray(new String[0]);
}
Aggregations