Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
<fieldPermissions>
<editable>true</editable>
<field>Employee.AlternateEmail</field>
<readable>true</readable>
</fieldPermissions>
<fieldPermissions>
<editable>true</editable>
<field>Employee.CurrentWellnessStatus</field>
{eventData.metrics.values=3.1296, eventData.calories=257, eventData.startTime=2011-08-11T02:44:39Z, eventData.activityTimeZone=GMT-08:00, eventData.deviceType=SPORTWATCH, eventData.tags.value=text string, eventData.metrics.intervalUnit=SEC, eventData.steps=10, eventData.fuel=662, eventData.activityId=104019031, eventData.metrics.metricType=DISTANCE, eventData.duration=0:14:31.000, eventData.distance=3.1318, eventData.metrics.intervalMetric=10, eventData.activityType=RUN, eventData.status=COMPLETE, eventData.tags.tagType=NOTE}
{
"activityId": "104019031",
"calories": 257,
"fuel": 662,
"distance": 3.1318,
"steps": 10,
"duration": "0:14:31.000",
"activityType": "RUN",
"startTime": "2011-08-11T02:44:39Z",
"activityTimeZone": "GMT-08:00",
<?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:http="http://www.mulesoft.org/schema/mule/http" xmlns:jira="http://www.mulesoft.org/schema/mule/jira" 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: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/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd
http://www.mulesoft.org/schema/mule/jira http://www.mulesoft.org/schema/mule/jira/2.0/mule-jira.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/c
<flow name="handleSuccessFlow">
<logger message="Success callback received: #[payload]"/>
<!-- handle the callback -->
</flow>
<flow name="handleFailureFlow">
<logger message="Failure callback received: #[payload]"/>
<!-- handle the callback -->
</flow>
<example:my-operation on-sucess-flow-ref="handleSuccessFlow"
on-failure-flow-ref="handleFailureFlow" />
@Module(name = "example")
public class ExampleConnector {
@Processor
public String myOperation(HttpCallback onSuccess, HttpCallback onFailure) {
String onSuccessFlowUrl = onSuccess.getUrl();
String onFailureFlowUrl = onFailure.getUrl();
...
}
<flow name="sendSmsMessage">
<vm:inbound-endpoint address="vm://sendSms" />
<twilio:send-sms-message from="${from.number}"
to="#[map-payload:to]"
body="#[map-payload:body]"
status-callback-flow-ref="callbackFlow" />
</flow>
<flow name="callbackFlow">
<logger message="Callback received: #[payload]" />
<dependency>
<groupId>org.mule.modules</groupId>
<artifactId>mule-module-sfdc</artifactId>
<version>4.0</version>
</dependency>
...
<repository>
<id>mulesoft-releases</id>
<name>MuleForge Release Repository</name>
<url>http://repository.mulesoft.org/releases/</url>
<flow name="accountUpdatesSubscription">
<sfdc:subscribe-topic topic="/AccountUpdates"/>
<logger level="INFO" message="Received an update from Account with Name #[map-payload:Name]"/>
</flow>