Skip to content

Instantly share code, notes, and snippets.

@pentreathm
pentreathm / TestingIf
Created June 27, 2014 15:15
trying IF in ECL
// This is the assertion that works fine
get-view Problems | get-tree | get-property itemCount | equals 0 | verify-true
//This never goes into the IF
if [ get-view Problems | get-tree | get-property itemCount | equals 0 ] {
log "I'm in"
}
//This also never goes into the IF
@pentreathm
pentreathm / jdbcExampleFlow
Created January 25, 2012 18:50
JDBC example flow
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:file="http://www.mulesoft.org/schema/mule/file" xmlns:jdbc="http://www.mulesoft.org/schema/mule/jdbc" 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:http="http://www.mulesoft.org/schema/mule/http" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="CE-3.2.1" xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/xml/current/mule-xml.xsd
http://www.mulesoft.org/schema/mule/file http://www.mulesoft.org/schema/mule/file/current/mule-file.xsd
http://www.mulesoft.org/schema/mule/jdbc http://www.mulesoft.org/schema/mule/jdbc/current/mule-jdbc.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/s
@pentreathm
pentreathm / JDBC Studio Config
Created October 4, 2011 13:41
JDBC Bean and Connector Configuration for MySQL
<spring:beans>
<spring:bean id="jdbcDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource"
doc:name="Bean">
<spring:property name="driverClassName" value="com.mysql.jdbc.Driver" />
<spring:property name="url"
value="jdbc:mysql://localhost/StudioQA?user=root&amp;password=" />
</spring:bean>
</spring:beans>
<jdbc:connector name="jdbcConnector" dataSource-ref="jdbcDataSource"