Skip to content

Instantly share code, notes, and snippets.

Mariano Gonzalez marianogonzalez

Block or report user

Report or block marianogonzalez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View xmlFTW.xml
<flow name="xmlFTW">
<validation:is-true expression="#[payload.xml == 'rules!']" />
<validation:is-false expression="#[payload.xml == 'is hard']]" />
</flow>
View melvalidation.xml
<flow name="melValidation">
<choice>
<when expression="#[validator.validateEmail(payload.email)]">
<flow-ref name="sendEmail" />
</when>
<otherwise>
<logger message="no email. Try contacting the user some other way" />
</otherwise>
</choice>
</flow>
View validateMailMel.xml
#[validator.validateEmail('mule@mulesoft.com')]
View validateregex.xml
<!-- Matches Canadian PostalCode formats with or without spaces (e.g., "T2X 1V4" or "T2X1V4") -->
<validation:matches-regex expression="T2X1V4" regex="^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$" caseSensitive="true" />
View validateregexMel.xml
#[validator.matchesRegex('T2X1V4', '^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$', true)];
View validatetimemel.xml
#[validator.isTime('12:08 PM', 'h:mm a')]
#[validator.isTime('12:08 PM', 'h:mm a', 'US')]
View validateempty.xml
<validation:empty expression="#[value]" />
You can’t perform that action at this time.