private void checkOperationOrder(String beginType,
List<XMLArtefactOperation> operations) throws IntegrationException {
PluginManager pluginManager = PluginManager.getInstance();
for (XMLArtefactOperation operation : operations) {
MetaArtefactOperation operationMetaData = pluginManager
.getArtefactOperation(operation.getId());
if (operationMetaData == null) {
// TODO externalize
String message = "don't know operation: " + operation.getId(); //$NON-NLS-1$
showError(message);
throw new IntegrationException();
}
if (!beginType.equals(operationMetaData.getSourceType())) {
// TODO externalize
String message = "operation chain contains errors"; //$NON-NLS-1$
showError(message);
throw new IntegrationException();
}
beginType = operationMetaData.getTargetType();
}
}