use of org.fusesource.camel.component.sap.model.rfc.FunctionTemplate in project quickstarts by jboss-switchyard.
the class FunctionTemplateMetadataProducer method createBookFlightFunctionTemplate.
@Produces
@Named("bookFlightFunctionTemplate")
public FunctionTemplate createBookFlightFunctionTemplate(@Named("importParameterList") List<ListFieldMetaData> importParameterList, @Named("exportParameterList") List<ListFieldMetaData> exportParameterList) {
FunctionTemplate template = RfcFactory.eINSTANCE.createFunctionTemplate();
template.setImportParameterList(importParameterList);
template.setExportParameterList(exportParameterList);
return template;
}
use of org.fusesource.camel.component.sap.model.rfc.FunctionTemplate in project quickstarts by jboss-switchyard.
the class RepositoryMetadataProducer method createRepositoryData.
@Produces
@Named("nplRepositoryData")
public RepositoryData createRepositoryData(@Named("bookFlightFunctionTemplate") FunctionTemplate bookFlightFunctionTemplate) {
RepositoryData data = RfcFactory.eINSTANCE.createRepositoryData();
Map<String, FunctionTemplate> templates = new HashMap<String, FunctionTemplate>();
templates.put("BOOK_FLIGHT", bookFlightFunctionTemplate);
data.setFunctionTemplates(templates);
return data;
}
Aggregations