Blog > Results of the CPI challenge

Results of the CPI challenge

CPI_challenge_results_Yeoh
Eng Swee Yeoh SAP Mentor
icon__calendar 2020-05-15

SAP CPI challenge – results

Int4 Team wants to send a big thank you to everyone who participated in our SAP CPI challenge to celebrate the International Education and Sharing Day, 5th April 2020.

Int4’s SAP Mentor Eng Swee Yeoh evaluated 25 contestants’ submissions based on the details described in the following section.

 

Testing Criteria and Sample Solution

In order to objectively evaluate the submissions for the challenge, we had to come up with some criteria. This was realized in the form of unit tests in a Spock specification. This enabled us to quickly test the Groovy scripts that were submitted without deploying the scripts onto the CPI tenant. For those that surpassed the “passing mark” (~50%), these were then deployed onto the CPI tenant for subsequent end-to-end testing.

 

Following are some of the key aspects that were tested:

  • String fields
  • Numeric fields
  • Date/time fields
  • Percent-encoded octets in the query string
  • Repeated parameters

These tests were realized in the following Spock specification:

https://github.com/engswee/int4-cpi-challenge/blob/master/Sample%20Solution/GenerateFilterCriteriaSpec.groovy

 

Following is our sample solution to the challenge, and a screenshot depicting the results of the Spock specification test run on it:

https://github.com/engswee/int4-cpi-challenge/blob/master/Sample%20Solution/GenerateFilterCriteria.groovy

Generate Filter Criteria Spec

 

Finalists

Amongst the submissions, we came across some notable solutions to the challenge. After a few rounds of testing, followed by code review, we present to you the following submissions that were chosen as finalists. All of these used unique and innovative approaches to their solutions.

 

Final Results

All three finalists came up with very innovative solutions to the challenge, so it was a close call to choose the best from among them. After much deliberation, we are pleased to announce the results of our inaugural CPI challenge as follows:

 

1st place – Chris Hyman

Joint 2nd place – Raffael Herrmann and Vadim Klimov

The key aspects that made Chris’ solution stand out are:

  • Implemented decoding of percent-encoded octets to ensure input query string is handled correctly
  • Accessed class resource of iFlow to retrieve the OData metadata (EDMX file)
  • Utilized Olingo library to process EDMX file for dynamic determination of field types

 

Once more, congratulations to Chris Hyman and all the participants! Please join us in congratulating the winners!!!

Thank you!

Eng Swee Yeoh SAP Mentor
Go-to expert in SAP integration currently focusing on Groovy and Camel, digging deep into SAP Cloud Platform Integration (CPI).

Contact us

If for any reason, the thought of reaching out to us has crossed your mind, then by all means do not hesitate to get in touch with us, as we are more than happy to put to rest all of your concerns.