Daten aus dem Cache geladen. Unlock Mule 4 Secrets: Master Stored Procedures with Oracle ADTs in...

Unlock Mule 4 Secrets: Master Stored Procedures with Oracle ADTs in 5 Easy Steps

0
394

Unlock the full potential of Mule 4 by mastering the art of invoking stored procedures with complex Abstract Data Types (ADTs) as IN, OUT, and IN OUT parameters.

The lack of comprehensive documentation and technical hurdles in retrieving ADT responses in Mule runtime 4.x.x have discouraged developers from leveraging MuleSoft for this purpose. However, by following the steps outlined below, you can overcome these challenges and successfully integrate DataWeave 2.0 and Mule's built-in connectors.

To illustrate this process, we will use a stored procedure as a reference. This procedure features an IN OUT parameter of Table type (Array) of a custom Abstract Data type, declared as follows:

invoking-stored-procedure-with-abstract-data-type_img_0.png

invoking-stored-procedure-with-abstract-data-type_img_1.png

invoking-stored-procedure-with-abstract-data-type_img_2.png

Important note: If the stored procedure is declared in a different user/schema than the one being used in Anypoint Studio, a public synonym must be created for the custom ADT types.

When setting up database connections, make sure to utilize the latest database driver, as shown below:

invoking-stored-procedure-with-abstract-data-type_img_3.png

The database connector should be at least version 1.5.5, preferably the latest.

invoking-stored-procedure-with-abstract-data-type_img_4.png

Next, populate the table type and object/record type using DataWeave, as demonstrated below:

invoking-stored-procedure-with-abstract-data-type_img_5.png

When populating the type, enter the database configuration name (Database_Config) while creating the struct and array in DataWeave. It is essential to declare the name of the Oracle table and record type in capital letters, along with the schema name.

By following these steps, you can unlock the full potential of Mule 4 and master the art of invoking stored procedures with complex Abstract Data Types. For more information on data engineering and Mule 4, visit carsnewstoday.com.

Execute the stored procedure via the database connector:

invoking-stored-procedure-with-abstract-data-type_img_6.png

Cerca
Categorie
Leggi tutto
Health
Saxenda Dubai Price & Availability – Where to Get It Legally
Understanding Saxenda Injection in Dubai Saxenda is a prescription medication used to aid in...
By Hasnain Haider 2025-03-15 06:14:29 0 29
Altre informazioni
Why Startups Need Professional Services to Succeed
Starting a new business can be both exciting and daunting at the same time. While it is an...
By AMpuesto India 2023-03-21 14:59:43 0 2K
Health
Intragastric Balloon Market Key Growth Factors & Challenges, Segmentation & Regional Outlook
Intragastric Balloon Market Overview: The intragastric balloon market is experiencing...
By Nikhat Sayyed 2024-07-22 09:14:02 0 675
Networking
Television Broadcasting Service Market Size, Share 2032 | Industry Analysis
The television broadcasting service market has experienced...
By Payal Durge 2024-12-11 09:23:06 0 55
Altre informazioni
Bio-Based Polypropylene Market Size, Share, Trends, Demand, Growth and Competitive Outlook
"Global Bio-Based Polypropylene (PP) Market – Industry Trends and Forecast to 2029 Access...
By Adam Walker 2024-11-13 18:51:38 0 175