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
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
<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
<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="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
<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
#%RAML 0.8 | |
--- | |
title: Acme REST API | |
version: v0.1 | |
baseUri: http://localhost:8081/acme/{version} | |
/products/{id}: | |
displayName: Product | |
get: | |
description: Get Product by ID |
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="get:/products/{id}:acme-config" doc:name="get:/products/{id}:acme-config"> | |
<set-payload value="#[NullPayload.getInstance()]" doc:name="Set Payload"/> | |
</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="get:/products/{id}:acme-config" doc:name="get:/products/{id}:acme-config"> | |
<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="GetProductByID" queryTimeout="-1" doc:name="Database"> | |
<jdbc-ee:query key="GetProductByID" value="SELECT * FROM Products WHERE ID=#[flowVars['id']]"/> | |
</jdbc-ee:outbound-endpoint> | |
<!-- add transformation logic here --> | |
</flow> |