cancel
Showing results for 
Search instead for 
Did you mean: 

How to get file properties when deploy to File System Receiver

johnhelen
Champ in-the-making
Champ in-the-making
Hello

I need to customise the processing of deploying files into FSR (the files are located in an user sandbox of a Web Project AVM) using jbpm engine . When deploying, I want to know details of each files (version number of the deployed files) that will be used for sending emails to configured users. I cannot see any reference related to a file when they are deployed in the current Alfresco codes. Could you please give me some hints for geting these information

I looked the current Alfresco codes for deploying files to FSR but do not have any clue

org.alfresco.service.cmr.avm.deploy.DeploymentService
org.alfresco.repo.workflow.jbpm.JBPMSpringActionHandler
org.alfresco.repo.avm.wf.AVMDeployHandler

Many thanks
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
The Deployment Receiver has callback functionality for when files are deployed.   e.h.  the postCommit handler.

On the server the deployment service allows you to inject a listener to tell you what has been deployed.

johnhelen
Champ in-the-making
Champ in-the-making
Thanks, mrogers

However I looked at classes for Deployment service (specific DeployedFile class), there is no  version property for a deployed file (there are only file type, isCreated….)

Can you have a little more clue Smiley Happy

Regards



mrogers
Star Contributor
Star Contributor
What version of alfresco and do you want the property on the alfresco side or the deployment engine.

johnhelen
Champ in-the-making
Champ in-the-making
Hello

My Alfresco version is 4.0.c.

Yes, I want to have uploaded files' properties on the Alfresco side. I am trying to use a custom Workflow that allow to send emails to selected users about the uploaded files (file name, updating date and version number and the person who uploaded these files). To do that, I extended JBPMSpringActionHandler file (similar to AVMDeployHandler). However, it seems that to get these info, I need to cross through some Alfresco classes (the function deployService.deployDifferenceFS does does not provide much info). Is there any simple solution ?

Regards