2. WHAT IS PYTHON?
Python is a widely used high-level, general-purpose, interpreted,
dynamic programming language. Its design philosophy emphasizes code
readability, and its syntax allows programmers to express concepts in fewer lines of
code than possible in languages such as C++ or Java.
3. MULE PYTHON COMPONENT
If you’re comfortable coding in Python, then the Python Component is the ideal
versatile tool to fall back on for these cases. Mule also includes also equivalent
scripting components for other languages. The Python Component is also handy for
when you’re modernizing legacy systems, as you can simply throw the old lines of
code into a component instead of having to reengineer the code’s behavior
through a series of different Mule components (this is not ideal from a debugging
and maintenance perspective, though). The Python script is generally executed at
runtime (client-side request) and the custom logic embedded in the script could
trigger an application to execute a database transaction, or modify your web-page
interface.
5. MULE PYTHON COMPONENT – CONFIGURATION
WIZARD (GENERAL TAB)
• Following are components in General tab –
• Display Name – Display name of the Mule Python component.
• Script Text – Use this radio button to enter script text directly
• Script File – Use this radio button to use script from a file.
• Script Reference – Use this radio button to give reference to script location.
7. MULE PYTHON COMPONENT – CONFIGURATION
WIZARD (ADVANCED TAB) (CONT.)
• Following are the options on advanced tab –
• Interceptors – Various interceptors can be defined according to various events.
• Interceptor Stack – Name of the interceptor stack to be used.
• Script properties – Various script properties can be added here.
8. MULE PYTHON COMPONENT – CONFIGURATION
WIZARD (NOTES AND META-DATA TABS)
• Notes tab - This tab is used to add special notes for the Python component.
• Metadata tab – This tab is used to add any metadata entry for Python
component.