Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Alfresco Developer Guide
  • Table Of Contents Toc
  • Feedback & Rating feedback
Alfresco Developer Guide

Alfresco Developer Guide

4 (7)
close
close
Alfresco Developer Guide

Alfresco Developer Guide

4 (7)

Overview of this book

Table of Contents (17 chapters)
close
close
Alfresco Developer Guide
Credits
About the Author
About the Reviewers
Preface
Index

Performing Post-Deployment Processing


There may be cases when you need to perform some tasks on the local deployment target after the files have been delivered. A good example of this might be loading metadata into an external relational database. Another example might be requesting indexing by an external search engine. In both examples, you need to be able to call a program after the deployment runs.

Step-by-Step: Running Post-Deployment Code in an FSR Deployment

In this case of an FSR deployment, the logic you want to execute after a deployment resides in a Java class that implements the org.alfresco.deployment.FSDeploymentRunnable interface. There are two examples that ship out of the box with Alfresco. One is called org.alfresco.deployment.SampleRunnable and the other is called org.alfresco.deployment.ProgramRunnable. The SampleRunnable class writes a deployment log file starting with dep-log to the deployment program's root directory. The ProgramRunnable class shows one way to run executables...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Edit Note

Modal Close icon
Write a note (max 255 characters)
Cancel
Update Note

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY