Reputation: 275
I would like to add some custom elements to a mule flow, like this:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:custom="http://www.example.com/schema/custom"
xsi:schemaLocation="
http://www.example.com/schema/custom file:/example/schema/custom.xsd">
<flow name="myFlow">
<custom:template name="generic-xml" type="flow"/>
<custom:template name="file" type="message-source"/>
</flow>
</mule>
Is it possible to do this? If yes, how to achieve this?
Thanks in advance.
Upvotes: 0
Views: 1284
Reputation: 5115
You could implement the MessageProcessor interface and call it with custom-processor or processor:
Or alternatively you could write your own module with DevKit.
Upvotes: 1
Reputation: 33413
The easiest way to create custom elements (message sources and processors) to a Mule configuration is to use the DevKit.
Don't get fooled by the cloud connector marketing lingo attached to DevKit: it will allow you to do way more than connecting to the cloud!
Upvotes: 3