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="Event Rate Limit Flow"> | |
<vm:inbound-endpoint path="filtered.in"/> | |
<esper:filter eventPayload-ref="#[payload:]" | |
statement="select case when count(*) > 1000 then false else true end from TestEvent.win:time(5 min)" | |
key="case when count(*)>1000 then false else true end"/> | |
<vm:outbound-endpoint path="filtered.out"/> | |
</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
package org.drools.examples.broker | |
import org.mule.MessageExchangePattern; | |
import org.mule.example.cep.Company | |
import org.mule.example.cep.StockTick | |
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="processStockTicks"> | |
<composite-source> | |
<inbound-endpoint ref="stockTick"/> | |
<ajax:inbound-endpoint channel="/services/cepExample/thresholdChange"/> | |
</composite-source> | |
<all> | |
<ajax:outbound-endpoint channel="/services/cepExample/stockTick"/> | |
<esper:send eventPayload-ref="#[payload:]"/> | |
</all> | |
</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
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:twitter="http://www.mulesoft.org/schema/mule/twitter" | |
xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" | |
xmlns:esper="http://www.mulesoft.org/schema/mule/esper" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd | |
http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/3.2/mule-quartz.xsd |
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
<esper-configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns="http://www.espertech.com/schema/esper" | |
xsi:schemaLocation=" | |
http://www.espertech.com/schema/esper | |
http://www.espertech.com/schema/esper/esper-configuration-2.0.xsd"> | |
<event-type name="Tweets" class="twitter4j.StatusJSONImpl"/> | |
</esper-configuration> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xmlns:spring="http://www.springframework.org/schema/beans" | |
xmlns:jms="http://www.mulesoft.org/schema/mule/jms" | |
xmlns:util="http://www.springframework.org/schema/util" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd |
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
import org.mule.api.client.MuleClient; | |
import org.mule.api.context.notification.EndpointMessageNotificationListener; | |
import org.mule.api.context.notification.ServerNotification; | |
import org.mule.context.notification.EndpointMessageNotification; | |
import org.mule.tck.FunctionalTestCase; | |
import org.mule.util.FileUtils; | |
import java.io.File; | |
import java.util.concurrent.CountDownLatch; | |
import java.util.concurrent.TimeUnit; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<mule xmlns="http://www.mulesoft.org/schema/mule/core" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:twitter="http://www.mulesoft.org/schema/mule/twitter" | |
xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" | |
xmlns:vm="http://www.mulesoft.org/schema/mule/vm" | |
xmlns:esper="http://www.mulesoft.org/schema/mule/esper" | |
xsi:schemaLocation=" | |
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/3.2/mule.xsd | |
http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/schema/mule/quartz/3.2/mule-quartz.xsd |
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="testFlow"> | |
<vm:inbound-endpoint path="in"/> | |
<esper:send eventPayload-ref="#[payload:]"/> | |
<vm:outbound-endpoint path="out"/> | |
</flow> | |
<flow name="Event Listener Flow"> | |
<esper:listen statement="select count(*) from TestEvent | |
.win:time_batch(5, 'FORCE_UPDATE, START_EAGER') having count(*) > 0"/> | |
<esper:get-event-property key="count(*)"/> |
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="testFlow"> | |
<vm:inbound-endpoint path="in"/> | |
<esper:send eventPayload-ref="#[payload:]"/> | |
<vm:outbound-endpoint path="out"/> | |
</flow> | |
<flow name="Event Listener Flow"> | |
<esper:listen statement="select count(*) from TestEvent | |
.win:time_batch(5, 'FORCE_UPDATE, START_EAGER') having count(*) > 0"/> | |
<esper:get-event-property key="count(*)"/> |