Skip to content

Instantly share code, notes, and snippets.

View nialdarbey's full-sized avatar

Nial Darbey nialdarbey

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:smtp="http://www.mulesoft.org/schema/mule/smtp" xmlns:mulexml="http://www.mulesoft.org/schema/mule/xml" xmlns:pop3s="http://www.mulesoft.org/schema/mule/pop3s" xmlns:jms="http://www.mulesoft.org/schema/mule/jms" xmlns:scripting="http://www.mulesoft.org/schema/mule/scripting" 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:vm="http://www.mulesoft.org/schema/mule/vm" xmlns:script="http://www.mulesoft.org/schema/mule/scripting" xmlns:imaps="http://www.mulesoft.org/schema/mule/imaps" xmlns:pivotal-tracker="http://www.mulesoft.org/schema/mule/pivotaltracker"
xmlns:quartz="http://www.mulesoft.org/schema/mule/quartz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="EE-3.2.2"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/xml http://www.mulesoft.org/schema/mule/
/**
* Mule Development Kit
* Copyright 2010-2011 (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
<!-- always use the api regarding of logging implementation -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.4</version>
<!-- BEGIN_INCLUDE(pivotaltracker:create-story) -->
<pivotaltracker:create-story content="#[map-payload:content]" />
<!-- END_INCLUDE(pivotaltracker:create-story) -->
<!-- BEGIN_INCLUDE(pivotaltracker:label-story) -->
<pivotaltracker:label-story content="#[map-payload:content]" />
<!-- END_INCLUDE(pivotaltracker:label-story) -->
<!-- BEGIN_INCLUDE(pivotaltracker:find-story-by-filter) -->
<pivotaltracker:find-story-by-filter content="#[map-payload:content]" />
<!-- END_INCLUDE(pivotaltracker:find-story-by-filter) -->
<!-- BEGIN_INCLUDE(pivotaltracker:comment-story) -->
mvn archetype:generate -DarchetypeGroupId=org.mule.tools.devkit -DarchetypeArtifactId=mule-devkit-archetype-cloud-connector -DarchetypeVersion=3.2 -DgroupId=com.mulesoft.se -DartifactId=pivotal-tracker-connector -Dversion=1.0-SNAPSHOT -DmuleVersion=3.2.1 -DmuleConnectorName=PivotalTracker -Dpackage=com.mulesoft.se -DarchetypeRepository=http://repository.mulesoft.org/releases
/**
* Configurable
*/
@Configurable
private String trackerToken;
/**
* Configurable
*/
@Configurable
/**
* Are we connected
*/
@ValidateConnection
public boolean isConnected() {
return true;
}
/**
* Creates a story on Pivotal TRacker
*
* {@sample.xml ../../../doc/PivotalTracker-connector.xml.sample
* pivotaltracker:create-story}
*
* @param storyXml
* details of story
* @return Story xml
*/
<composite-source>
<vm:inbound-endpoint path="createStory" exchange-pattern="one-way" doc:name="createStory"/>
<jms:inbound-endpoint queue="error.createStory" connector-ref="Active_MQ" doc:name="error.createStory" />
</composite-source>
<until-successful objectStore-ref="createStoryObjectStore" maxRetries="12" secondsBetweenRetries="300">
...
</until-successful>
<default-exception-strategy>
<processor-chain>
<logger message="Failed to invoke createStory on PivotalTracker connector. Will retry in 1 hour" level="ERROR" />
<composite-source>
<vm:inbound-endpoint path="createStory" exchange-pattern="one-way" doc:name="createStory"/>
<jms:inbound-endpoint queue="error.createStory" connector-ref="Active_MQ" doc:name="error.createStory" />
</composite-source>
<until-successful objectStore-ref="createStoryObjectStore" maxRetries="12" secondsBetweenRetries="300">
...
</until-successful>