ShortenURL custom component for LiveCycle ES

While creating a new LiveCycle demo recently I came across an issue where I wanted to pass a URL of a document via Twitter. The process was storing a PDF document into LiveCycle Content Services, obtaining the URL, then notifying people about the new document via Twitter.

Process diagram demonstrating the use of the ShortenURL component

I took a look at the APIs for bit.ly and after a quick bit of Googling I came across Peter Mularien’s tutorial on URL Shortening in Java using bit.ly. About thirty minutes later I had an Eclipse project setup, a bity.ly account & developer GUID, and had written the component XML describing the properties to expose to LiveCycle. For more detail on that process check out this article:Extending LiveCycle ES software through custom DSC development – Part 1: Create a basic service component

Properties panel for ShortenURL servicebtw – thanks to Gareth Faulkner from Adobe Australia for some debugging assistance!

The result is this new reusable component for LiveCycle!  All you need to do is provide

  • LongURL
  • Bit.ly Login
  • Bit.lyAPI Key

Download the ShortURL component for Adobe LiveCycle ES

Let me know if and how you use it!