<?xml version='1.0' encoding='UTF-8'?>
<rp:ObjectSet xmlns:rp="http://www.soasta.com/services/repository">
  <Object created="2008-02-05T16:59:28.000-05:00" id="2782" lastModified="2008-02-05T16:59:28.000-05:00" name="ReplaceVersionNumberClip" type="messageclip" schemaVersion="143" path="/">
    <Body>
      <MessageClip xmlns="http://www.soasta.com/services/repository">
        <Targets xmlns="http://www.soasta.com/services/repository" />
        <Options interItemDelay="0" xmlns="http://www.soasta.com/services/repository" />
      </MessageClip>
    </Body><BinaryData /><Description />
    <Attributes>
      <Attribute name="type">
        <Value>sequenced</Value>
      </Attribute>
      <Attribute name="timeableCount">
        <Value>1</Value>
      </Attribute>
      <Attribute name="sendCount">
        <Value>0</Value>
      </Attribute>
      <Attribute name="numberOfTransitions">
        <Value>1</Value>
      </Attribute>
    </Attributes><TipText />
  </Object>
  <Object created="2008-02-05T16:56:10.000-05:00" id="2781" lastModified="2008-02-05T16:56:10.000-05:00" name="Replace Version Number in Messages" type="transition" schemaVersion="143" path="/">
    <Body>
      <Transition xmlns="http://www.soasta.com/services/repository">
        <Script language="JavaScript" xmlns="http://www.soasta.com/services/repository">// The Messages in this Clip have URL parameters with a version number in them.  This
// script replaces the version number which will change with each build, with a constant version
// string, "version" which is used in development and always returns the requested resource.
var versionToReplace = "version20";
var version= "version";

var clipElements = $context.currentClip.children;
for (var i=0; i&lt;clipElements.length; ++i)
{
  var clipElement = clipElements[i];
  if (clipElement.type == "Message")
  {
    var origMessage = clipElement.getMessage(clipElement.MESSAGE_HTTP_BODY);
    var newMessage = origMessage.replace(versionToReplace,version);
    if (origMessage != newMessage)
    {
     clipElement.setMessage(newMessage, clipElement.MESSAGE_HTTP_BODY);
     $context.result.postMessage($context.result.LEVEL_INFO, "Replaced version string in Message.", 
     "Original Message: " + origMessage + "\n\nNew Message: " + newMessage);
    }
  }
}

</Script>
      </Transition>
    </Body><BinaryData />
    <Description></Description>
    <TipText></TipText>
  </Object>
  <Object created="2008-02-05T16:59:28.000-05:00" id="4790" lastModified="2008-02-05T16:59:28.000-05:00" name="Replace Version Number in Messages" type="clipelement" schemaVersion="143" path="/ReplaceVersionNumberClip">
    <Body>
      <rp:ClipElement xmlns:rp="http://www.soasta.com/services/repository">
        <rp:Transition xmlns:rp="http://www.soasta.com/services/repository">
          <TransitionRef internalID="2781" xmlns="http://www.soasta.com/services/repository" />
        </rp:Transition>
      </rp:ClipElement>
    </Body><BinaryData /><Description />
    <Attributes>
      <Attribute name="type">
        <Value>transition</Value>
      </Attribute>
      <Attribute name="operation">
        <Value null="true" />
      </Attribute>
      <Attribute name="destinationID">
        <Value null="true" />
      </Attribute>
      <Attribute name="offset">
        <Value null="true" />
      </Attribute>
      <Attribute name="index">
        <Value>0</Value>
      </Attribute>
      <Attribute name="repeatSpec">
        <Value null="true" />
      </Attribute>
    </Attributes>
    <References>
      <Reference id="2781" internalID="2781" name="Replace Version Number in Messages" path="/" type="transition" />
    </References><TipText />
  </Object>
  <Object created="2008-02-05T17:00:32.000-05:00" id="2783" lastModified="2008-02-05T17:00:32.000-05:00" name="ReplaceVersionNumberComposition" type="composition" schemaVersion="143" path="/">
    <Body>
      <Composition xmlns="http://www.soasta.com/services/repository">
        <Bands xmlns="http://www.soasta.com/services/repository">
          <Band name="Band 1" type="time-based" xmlns="http://www.soasta.com/services/repository" />
        </Bands>
        <Tracks xmlns="http://www.soasta.com/services/repository">
          <Track enabled="1" name="Track 1" xmlns="http://www.soasta.com/services/repository">
            <Bands xmlns="http://www.soasta.com/services/repository">
              <Band name="Band 1" xmlns="http://www.soasta.com/services/repository">
                <Clips xmlns="http://www.soasta.com/services/repository">
                  <Clip duration="5000" enabled="1" name="ReplaceVersionNumberClip" offset="2300" ref="1" xmlns="http://www.soasta.com/services/repository" />
                </Clips>
              </Band>
            </Bands>
          </Track>
        </Tracks>
        <PlaySettings xmlns="http://www.soasta.com/services/repository">
          <PreviewMode setting="false" xmlns="http://www.soasta.com/services/repository" />
          <PersistResult setting="true" xmlns="http://www.soasta.com/services/repository" />
          <ResultLevels xmlns="http://www.soasta.com/services/repository">
            <Composition level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Band level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Track level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <MessageClip level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Chain level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Message level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <BrowserAction level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Transition level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Checkpoint level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Delay level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Target level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Transport level="verbose" xmlns="http://www.soasta.com/services/repository" />
            <Validation level="verbose" xmlns="http://www.soasta.com/services/repository" />
          </ResultLevels>
        </PlaySettings>
      </Composition>
    </Body><BinaryData /><Description />
    <Attributes>
      <Attribute name="lastPlayed">
        <Value>2008-02-26T15:09:41.000-05:00</Value>
      </Attribute>
      <Attribute name="successfulPlayCount">
        <Value>4</Value>
      </Attribute>
      <Attribute name="unsuccessfulPlayCount">
        <Value>0</Value>
      </Attribute>
      <Attribute name="stoppedPlayCount">
        <Value>0</Value>
      </Attribute>
      <Attribute name="userData">
        <Value null="true" />
      </Attribute>
    </Attributes>
    <References>
      <Reference id="2782" internalID="1" name="ReplaceVersionNumberClip" path="/" type="messageclip" />
    </References><TipText />
  </Object>
</rp:ObjectSet>

