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.
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...