This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<custom-transformer name="StringToNameString" class="org.mule.example.hello.StringToNameString"/> | |
<custom-transformer name="NameStringToChatString" class="org.mule.example.hello.NameStringToChatString"/> | |
<custom-transformer name="ChatStringToString" class="org.mule.example.hello.ChatStringToString"/> | |
<custom-transformer name="HttpRequestToNameString" class="org.mule.example.hello.HttpRequestToNameString"/> | |
<custom-transformer name="ExceptionToString" class="org.mule.example.hello.ExceptionToString"/> | |
<custom-transformer name="HttpRequestToParameter" class="org.mule.transport.servlet.transformers.HttpRequestToParameter"/> | |
<custom-transformer name="ObjectToString" class="org.mule.transformer.simple.ObjectToString"/> | |
<flow name="Hello World"> | |
<composite-source> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<custom-transformer name="StringToNameString" class="org.mule.example.hello.StringToNameString"/> | |
<custom-transformer name="NameStringToChatString" class="org.mule.example.hello.NameStringToChatString"/> | |
<custom-transformer name="ChatStringToString" class="org.mule.example.hello.ChatStringToString"/> | |
<custom-transformer name="HttpRequestToNameString" class="org.mule.example.hello.HttpRequestToNameString"/> | |
<custom-transformer name="ExceptionToString" class="org.mule.example.hello.ExceptionToString"/> | |
<custom-transformer name="HttpRequestToParameter" class="org.mule.transport.servlet.transformers.HttpRequestToParameter"/> | |
<custom-transformer name="ObjectToString" class="org.mule.transformer.simple.ObjectToString"/> | |
<flow name="Hello World"> | |
<composite-source> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="DroolsFlow"> | |
<vm:inbound-endpoint ref="DroolsEndpoint" exchange-pattern="request-response"/> | |
<bpm:rules rulesDefinition="routingRules.drl" initialFacts-ref="NoFactsBean" /> | |
<expression-transformer evaluator="groovy" expression="message.getPayload().getObject()"/> | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="jBPMProcess"> | |
<composite-source> | |
<vm:inbound-endpoint path="in" exchange-pattern="request-response"/> | |
<jms:inbound-endpoint ref="UnsortedOrders"/> | |
</composite-source> | |
<bpm:process processName="WarehouseRouting" processDefinition="warehouse-routing-process.jpdl.xml"/> | |
</flow> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="OrdersGenerator"> | |
<quartz:inbound-endpoint jobName="eventTimer" repeatInterval="2000"> | |
<quartz:event-generator-job> | |
<quartz:payload>123</quartz:payload> | |
</quartz:event-generator-job> | |
</quartz:inbound-endpoint> | |
<scripting:component> | |
<scripting:script engine="groovy"> | |
<![CDATA[ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.mulesoft.mule.droolsjbpmexample | |
import org.mule.MessageExchangePattern; | |
import com.mulesoft.mule.droolsjbpmexample.Order; | |
global org.mule.module.bpm.MessageService mule; | |
# default dialect for the semantic code will be MVEL | |
dialect "mvel" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mule-send name="sendToWarehouseA" | |
expr="#{order}" endpoint="WarehouseA" exchange-pattern="one-way"> | |
<transition to="routingSuccessful" /> | |
</mule-send> | |
<mule-send name="sendToWarehouseB" | |
expr="#{order}" endpoint="WarehouseB" exchange-pattern="one-way"> | |
<transition to="routingSuccessful" /> | |
</mule-send> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<decision name="sendToWarehouse"> | |
<transition to="sendToWarehouseA"> | |
<condition expr="#{order.destination == 'WAREHOUSE_A'}" /> | |
</transition> | |
<transition to="sendToWarehouseB"> | |
<condition expr="#{order.destination == 'WAREHOUSE_B'}" /> | |
</transition> | |
<transition to="routingFailed" /> | |
</decision> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mule-send name="sendToDrools" | |
expr="#{order}" | |
endpoint="DroolsEndpoint" | |
exchange-pattern="request-response" | |
var="order"> | |
<transition to="sendToWarehouse" /> | |
</mule-send> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mule-receive name="unsortedOrder" | |
endpoint="UnsortedOrders" | |
type="com.yusen.mule.droolsbpmexample.Order" | |
var="order"> | |
<transition to="sendToDrools" /> | |
</mule-receive> |