Scott Duncan

Jul 28 2009

The Power of Web Forms in Alfresco WCM

It pays to use a separate web form for each web content type.

My client uses web forms in Alfresco 3.0E to create web content.  This means that when users want to create HTML (web content), they open an "authoring" form (defined ahead of time using XSD), populate its fields with the desired content, and save it.  On save, Alfresco does two things:

  • saves the content item as an XML file;
  • transforms the XML to HTML using an XSL rendering template (also written beforehand).

Read More

Jul 08 2009

Using Groovy to Parse Application Logs for Performance Data

Groovy came in handy for me once again last week when I was tasked with aggregating performance data from application logs.  The logs were concatenated together into one file that totalled over 2 million lines.  Interspersed throughout the logs were performance timer entries.  Each entry included a timestamp, a string for tagging the line as a performance timer entry, the name of the object and method called, and the number of milliseconds elapsed for the method's execution.

Performance tests were run over a two-day period under various loads.  For analysis purposes we wanted to see each method's average run time for each set of conditions, so we needed a way to look at aggregated data for specified time periods.  The results would be output to a CSV format for easy integration with an Excel worksheet.  Finally, we didn't want to spend too much time on creating a script since it wouldn't really be reuseable outside the context of this project, due to the specific formatting of the performance timing entries.

Read More

Jun 18 2009

Renaming Content in Alfresco WCM

I needed to rename several web content items in an Alfresco web project.  Alfresco WCM does not support renaming of content.  I needed a fairly painless way to rename these items without having to go through the exercise of creating them from scratch, filling in all the required fields in the web form, tagging the content, etc.  This is what I came up with:

Steps:

Read More

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.