Anypoint Platform Development: Mule 4 for Mule 3 Users

Description
Uplevel your skills from Mule 3 to Mule 4 with hands-on experience with Studio 7 and Mule 4.
Course issues

Last updated April 26, 2023

Note: If you come across an issue not reported here, please report it in the course forum.

  • Infrastructure endpoints are down. Infrastructure problems which include unresponsive mu.learn.mulesoft.com endpoints are currently being investigated. Our operations team is working diligently to resolve these issues yet report it may take several days. In the meantime, MuleSoft Training suggests to use the MuleSoft training services JAR file provided in the Student files/jars folder. This will provide local, on-device simulation of endpoint content. Details on how to use this JAR file can be found in Part 1, Walkthrough 4-2 of the Training: Dev. Fundamentals Mule 4 course.
  • Starting files links do not always work. The ability to download a starting file from a link at the beginning of many of the walkthroughs temporarily does not work in some browsers including Chrome. To download the desired file, you can either right-click and copy the link then paste it manually into the address bar of your browser or else get the file from the solutions subdirectory of your student files. This issue will be fixed in the next available course update.
  • WT 3-3 workaround. If you get a 500 Server Error with the message "Unexpected error while consuming web service: 'To' cannot be null" while testing the application at step 31, do the following. Go back to step 28 and, in addition to setting the Wsdl locationService and Port fields, set the Address field to the value http://mu.learn.mulesoft.com/delta (or http://localhost:9191/delta if the local services are being used).
  • Learner profile survey not available. If you have filled out the Learner profile survey in another course, you may get a message that Survey is not available. If you get this message, refresh the web page; the survey should now show as complete and you should be able to progress in the course.
Course updates

Last updated January 31, 2023

  • January 31, 2023: New required surveys and new course player tabs added.
    • Added new instructions and required surveys as the first module of the course. These need to be completed before you can access any of the course content.
    • Added new Course issues and Course updates tabs to the top of the course player.

  • January 27, 2023: Course structure enhanced and new extra content added!
    • Reorganized each module into topics containing graded topic videos and walkthrough exercises.
    • Enhanced walkthrough step lessons with expandable table of contents.
    • Added new Extras folders to the course topics, which contain new supplemental, non-graded content including new walkthrough videos, the topic slides, and instructor lightboard videos.

  • November 23, 2022: Content updated for the September 2022 version of Anypoint Platform, Anypoint Studio 7.14.0, and Mule runtime 4.4.0.
    • All content updated with any required changes for product updates.


2. MuleSoft self-paced courses are moving

Starting May 3, 2024, MuleSoft self-paced courses will either be migrated or retired. See FAQ for more details.

3. Registration for the instructor-led course

MuleSoft expert-led courses have a new home. Visit Trailhead Academy to learn more and register.

10. Summary

This course is for experienced Mule 3 developers who want to quickly uplevel their skills to Mule 4. The course is hands-on and focuses on what’s new and/or different in Mule 4 and Studio 7.

The course prepares students to take the MuleSoft Certified Developer - Level 1 exam. Students completing the course by April 26, 2024, will automatically receive two exam attempts. Note: The MuleSoft certification program will be moved over to the Salesforce Certification program, available through Webassessor starting May 6, 2024. For additional information, please visit our FAQ.

20. Objectives

At the end of this course, students should be able to:

  • Build Mule 4 applications using Anypoint Studio.
  • Use Anypoint Studio to build & debug integrations and API implementations.
  • Connect to databases, files, web services, SaaS apps, JMS queues, and more.
  • Transform data using DataWeave 2, the transformation language.
  • Add application logic and handle errors.
  • Handle batch data processing.
  • Migrate a Mule 3 application to Mule 4 using Mule Migration Assistant.
30. Audience

Users who have acquired foundational experience of Mule 3 development processes. 

40. Prerequisites

Experience developing Mule 3 applications. 

50. Setup requirements
  • A computer with:
    • At least 8-16 GB RAM (16 highly recommended), 2GHz CPU, and 10GB available storage
    • A minimum screen resolution of 1024x768
  • Internet access to ports 80 and 3306 (with > 5Mbps download and > 2Mbps upload)
  • The latest version of Chrome, Safari, Firefox, or Edge
  • An Anypoint Platform account
  • Anypoint Studio 7.14 or later with embedded Mule 4 runtime
  • A Salesforce Developer account (not a standard account) and API Access token
  • Advanced REST Client 16.0.1 or later (or any other REST client application)

Get a detailed setup document here.

60. Outline
Module 1: Accessing and modifying Mule events
  • Log event data
  • Debug Mule applications
  • Read and write event properties
  • Write expressions with the DataWeave expression language
  • Create variables
Module 2: Structuring Mule applications
  • Create applications composed of multiple flows and subflows
  • Pass events between flows using asynchronous queues
  • Encapsulate global elements in separate configuration files
  • Specify application properties in a separate properties file and use them in the application
  • Describe the purpose of each file and folder in a Mule project
  • Define and manage application metadata
Module 3: Consuming web services
  • Consume web services that have an API (and connector) in Anypoint Exchange
  • Consume RESTful web services
  • Consume SOAP web services
  • Pass parameters to SOAP web services using the Transform Message component
  • Transform data from multiple services to a canonical format
Module 4: Controlling event flow
  • Multicast events
  • Route events based on conditions
  • Validate events
Module 5: Handling errors
  • Handle messaging errors at the application, flow, and processor level
  • Handle different types of errors, including custom errors
  • Use different error scopes to either handle an error and continue execution of the parent flow or propagate an error to the parent flow
  • Set the success and error response settings for an HTTP Listener
  • Set reconnection strategies for system errors
Module 6: Writing DataWeave transformations
  • Write DataWeave expressions for basic XML, JSON, and Java transformations
  • Write DataWeave transformations for complex data structures with repeated elements
  • Define and use global and local variables and functions
  • Use DataWeave functions
  • Coerce and format strings, numbers, and dates
  • Define and use custom data types
  • Call Mule flows from DataWeave expressions
  • Store DataWeave scripts in external files
Module 7: Triggering flows
  • Read and write files
  • Trigger flows when files are added, created, or updated
  • Trigger flows when new records are added to a database table
  • Schedule flows to run at a certain time or frequency
  • Persist and share data in flows using the Object Store
  • Publish and consume JMS messages
Module 8: Processing records
  • Process items in a collection using the For Each scope
  • Process records using the Batch Job scope
  • Use filtering and aggregation in a batch step
Module 9: Migrating Mule 3 applications
  • Migrate a Mule 3 application using Mule Migration Assistant (MMA)
  • Describe the scope and limitations of MMA
  • Read and understand MMA migration reports
  • Refactor a migrated application to make best use of Mule 4 features
Course Details
  • Code:
    DEV_140_M443_SelfPaced
  • Free