use of org.palladiosimulator.pcm.seff.ExternalCallAction in project Palladio-Editors-Sirius by PalladioSimulator.
the class AddExternalCallAction method execute.
@Override
public void execute(Collection<? extends EObject> selections, Map<String, Object> parameters) {
ExternalCallAction extCall = (ExternalCallAction) parameters.get("instance");
HashMap<OperationInterface, OperationRequiredRole> requiredRolesMap = new HashMap<OperationInterface, OperationRequiredRole>();
OperationSignature os = getOperationSignature(extCall, requiredRolesMap);
if (os != null) {
extCall.setCalledService_ExternalService(os);
extCall.setRole_ExternalService(requiredRolesMap.get(os.getInterface__OperationSignature()));
}
}
Aggregations