Show answerHide answer
Correct answer: D Run a Groovy script
Explanation
Explanation:In SAP Integration Suite (Cloud Integration), the Script step is the primary tool for developers to implement logic that cannot be achieved using standard out-of-the-box components like the Content Modifier or Message Mapping.
Groovy Scripting:
SAP Cloud Integration provides native support for Groovy and JavaScript. Groovy is particularly favored because it is a powerful, Java-syntax-compatible language that can easily parse XML, JSON (often used in CloudEvents), and manipulate exchange properties or headers in real-time. It is the "gold standard" for custom business logic in the SAP BTP runtime environment.
Why the Other Options are Incorrect
A. Use an external REST API:
While you could call an external API to process data, it is not an "element" of the flow designed for executing logic locally. It adds unnecessary latency, network overhead, and external dependency compared to a local script.
B. Employ a Mule Expression component:
This is a "distractor" choice. Mule Expression Language (MEL) and DataWeave are proprietary to MuleSoft, a competitor to SAP. These components do not exist in the SAP Integration Suite toolkit.
C. Use a Java connector:
SAP Cloud Integration does not have a "Java Connector" element within the iFlow designer. While you can upload custom Java archives (.jar files) to be called by a Groovy script, the "connector" terminology is incorrect in this context.
References
SAP Help Portal - Scripting: Documentation confirms that the "Script" step allows the execution of custom Groovy or JavaScript to perform complex data transformations or logic.