Custom Business Event in Mule 4

Custom Business Event Component in Mule

You can use Custom Business Event (tracking:custom-event) components to add metadata and Key Performance Indicators (KPIs) to your flow.The key/value pairs can vary according to your business needs.

flow of Custom Business Event : 

Custom business event configuration:

Method: POST

Input :
          "id" : 1


          "id" : 1

XML project code:

<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:tracking="" xmlns:http=""
       xmlns:doc="" xmlns:xsi="" xsi:schemaLocation="">
       <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="7939b75c-5ffb-4891-bb0a-a0a7d1a45eba" >
              <http:listener-connection host="" port="8085" />
       <flow name="test_custom_bus_eventFlow" doc:id="f2aaa2e3-08e9-4ffd-92ef-acba8c2ed3f1" >
              <http:listener doc:name="Listener" doc:id="e75801b5-d442-4836-8eba-0323216cb569" config-ref="HTTP_Listener_config" path="/custom"/>
              <tracking:custom-event doc:name="Custom Business Event" doc:id="0c2a5981-534c-48e2-bd42-f5ad02265744" event-name="Event">
                     <tracking:meta-data key="id" value="#[]" />

© 2020

Share on :

Mule 4:

XML to JSON in mule 4 Web service consumer VM Validation in Mule 4 Until Successful
Sub flow Set Variable & Remove Variable Set Transaction ID Scatter Gather Round Robin
Consume Restful Service CRUD in Mule 4 Parse Template Object to JSON Load Static Resource
JSON to XML Invoke Idempotent Filter ForEach Flat file to JSON
Fixwidth to JSON First Successful File Execute Error Handling
Email Dynamic Evaluate Custom Business Event CSV to JSON Copybook to JSON
Choice Router Async RabbitMQ

Mule 3:

Database Connector Async CXF Attachement XSLT
Mongo DB Cache scope Custom Business Event Gzip Compress Expression
SMTP For Each Expression Javascript Filter Reference
Salesforce Message Enricher Groovy Parse Template Idempotent
VM Poll Invoke Ruby Message
Webservice consumer Python Transformer reference Message Property Not
Collection Aggregator First Sucessful Catch Exception Strategy Reference Exception Strategy Or
Choice Message Chunk Aggregator Choice Exception Strategy Global Exception Strategy Schema Validation
Custom Aggregator Scatter Gather Custom Exception Strategy Batch Processing MEL
M Unit RAML Map Operator API Mocking Dataweave