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
| <quartz:inbound-endpoint jobName="masterclock" cronExpression="0 0/1 * * * ?" repeatInterval="0" responseTimeout="10000" doc:name="Quartz"> | |
| <quartz:event-generator-job/> | |
| </quartz:inbound-endpoint> |
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
| CREATE DEFINER=`iappsandbox`@`%` PROCEDURE `set_sync_control`(uname varchar(255)) | |
| BEGIN | |
| UPDATE blogdemo.sync_control SET isrunning=true WHERE username=uname AND isrunning = false; | |
| SELECT ROW_COUNT() AS syncset; | |
| END | |
| CREATE DEFINER=`iappsandbox`@`%` PROCEDURE `release_sync_control`(uname varchar(255)) | |
| BEGIN |
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:jdbc-ee="http://www.mulesoft.org/schema/mule/ee/jdbc" xmlns:zuora="http://www.mulesoft.org/schema/mule/zuora" xmlns:context="http://www.springframework.org/schema/context" xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:core="http://www.mulesoft.org/schema/mule/core" xmlns:data-mapper="http://www.mulesoft.org/schema/mule/ee/data-mapper" xmlns:tracking="http://www.mulesoft.org/schema/mule/ee/tracking" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="EE-3.3.0" xsi:schemaLocation=" | |
| http://www.mulesoft.org/schema/mule/ee/jdbc http://www.mulesoft.org/schema/mule/ee/jdbc/current/mule-jdbc-ee.xsd | |
| http://www.mulesoft.org/schema/mule/zuora http://www.mulesoft.org/schema/mule/zuora/1.0/mule-zuora.xsd | |
| http://www.mulesoft.org/schema/mule/quartz http://www.mulesoft.org/sch |
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
| <zuora:find config-ref="Zuora" zquery="SELECT ID,Amount,InvoiceNumber,DueDate,Comments FROM Invoice WHERE Status='Posted' AND TransferredToAccounting = null AND Amount > 0" username="#[header:outbound:zuser]" password="#[header:outbound:zuser]" doc:name="ZuoraInvoices"/> |
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
| <spring:bean id="datasource" name="datasource" class="org.enhydra.jdbc.standard.StandardDataSource" destroy-method="shutdown"> | |
| <spring:property name="driverName" value="org.apache.derby.jdbc.EmbeddedDriver"/> | |
| <spring:property name="url" value="jdbc:derby:memory:blogdemo"/> | |
| </spring:bean> |
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.mule.blogdemo.init; | |
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.Statement; | |
| import org.springframework.beans.factory.InitializingBean; | |
| public class DBInitialization implements InitializingBean { | |
| public void afterPropertiesSet() throws Exception { |
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
| <spring:bean id="dbinitialization" name="dbinit" class="org.mule.blogdemo.init.DBInitialization"/> |
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
| <jdbc-ee:connector name="apache-derby" dataSource-ref="datasource" validateConnections="false" queryTimeout="-1" pollingFrequency="0" doc:name="Database"> | |
| <jdbc-ee:query key="insertRecord" value="INSERT INTO table1 (Name, External_ID__c, Value__c, Last_Modified) VALUES (#[map-payload:name], #[map-payload:externalid], #[map-payload:value], #[map-payload:lastmodified])"/> | |
| <jdbc-ee:query key="selectRecord" value="SELECT Name, External_ID__c, Value__c FROM table1 ORDER BY Last_Modified"/> | |
| </jdbc-ee:connector> |
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="mainFlow" doc:name="mainFlow" processingStrategy="synchronous"> | |
| <file:inbound-endpoint path="src/test/resources" moveToDirectory="src/test/archives" responseTimeout="10000" doc:name="Input File"/> | |
| <jdbc-ee:csv-to-maps-transformer ignoreFirstRecord="true" doc:name="CSV to Maps" mappingFile="src/main/resources/mules-csv-format.xml"/> | |
| <foreach doc:name="Foreach"> | |
| <logger message="#[payload]" level="INFO" doc:name="csv record" /> | |
| <jdbc-ee:outbound-endpoint exchange-pattern="one-way" queryKey="insertRecord" queryTimeout="-1" connector-ref="apache-derby" doc:name="insert-record"/> | |
| </foreach> | |
| <jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="selectRecord" queryTimeout="-1" connector-ref="apache-derby" doc:name="select records"/> | |
| <sfdc:upsert config-ref="salesforce" externalIdFieldName="External_ID__c" type="Demo_Object__c" doc:name="upsert.record.in.salesforce"> | |
| <sfdc:objects ref="#[payload]"/> |
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
| name | externalid | value | lastmodified | |
|---|---|---|---|---|
| order1 | 1 | 10 | 2012-09-22 13:40:00.00 | |
| order1 | 1 | 1 | 2012-09-22 10:00:00.00 | |
| order1 | 1 | 5 | 2012-09-22 11:00:00.00 |
OlderNewer