Tag Archives: Java

Twitter Component v2.0 for Adobe LiveCycle ES2 released!

About 3 years ago I wrote my first custom component for Adobe LiveCycle ES, a Twitter client, that allowed you to Tweet as part of a process orchestration. I’ve seen it crop up in quite a few demonstrations over time and find it to be a good example of how extensible Livecycle ES is. Until it broke. or rather, Twitter changed their authentication system to require oAuth, causing me to finally update the 3 year old code.

Times have changed for component development with LiveCycle. When I built the first version it involved manual creation of config file. Life is easy with the new LiveCycle Workbench ES Component Development Tool on Adobe Labs.

Here is the process I followed (Step 1-8 took less than 2 hours)

  1. Open Eclipse
  2. Stare at the screen for a minute
  3. Google “Twitter oAuth Java”
  4. Found “Scribe” and downloaded the library
  5. Ran the sample Java code within Eclipse and confirmed it worked
  6. Ran the LiveCycle Component Development Tool and created the wrapper project
  7. “Stole” pieces of the Scribe sample code for the Livecycle component.
  8. Deployed and tested the component in a process (it actually worked first go! Gasp!)
  9. Wrote some documentation -> http://www.markszulc.com/blog/twitter-component-for-adobe-livecycle-es2-5/

Most of the time was spent futzing around trying to understand oAuth 2.0, so hopefully my docs above will make it easy to get the component up and running. The actual LiveCycle work took very little time.

Still to do

  1. Better error handling – Twitter codes are returned, but I’m assuming internet connectivity :-/
  2. More operations eg. direct tweet, reply etc
  3. Consider making a Facebook & Foursquare version

Any feature requests? If you use it (even for a demo) let me know!

Adobe LiveCycle Workbench ES Component Development Tool

Building custom components for Adobe LiveCycle ES can be as simple as writing an xml file. In fact, that’s all I had to do to convert a couple of POJOs into a ShortenURL & Twitter custom components. However things can always be made easier which is what this new Adobe Labs project aims to do.

Adobe® LiveCycle® Workbench ES Component Development Tool is a Plug-in for Eclipse that helps Java developers build a custom Component for LiveCycle ES. The Component Development Tool makes is easy to create a new Java project used to build a Component jar file, define the Services and Operations your Component will expose and include third party Java logic inside your Component. The Component Development Tool includes a GUI to help create and modify your component XML.

Download it from Adobe Labs and let me know what you build!