Hello,I have two folders at the root (company_home) : "Importes" and "Editer"Applied Rules :"importes" : 1)Incoming : Specialize type to my type 2)Incoming : Move to "Editer""Editer" : 1)Incoming : apply my own executer (MscImporter.java).here the code of MscImporter.java :
if (nodeService.exists( pActionedUponNodeRef ))
{
// on increment le compteur de nombre de document scannes
NodeRef lEditerFolder = mscSearchService
.getFolder( MscFolderEnum.FOLDER_EDITER.getFolderName() );
int lCounter = 1;
// add the cm:countable aspect as required
if (!nodeService.hasAspect( lEditerFolder,
ContentModel.ASPECT_COUNTABLE ))
{
// set the value to 1 by default
Map<QName, Serializable> props = new HashMap<QName, Serializable>(
1 );
props.put( ContentModel.PROP_COUNTER, lCounter );
nodeService.addAspect( lEditerFolder,
ContentModel.ASPECT_COUNTABLE, props );
}
else
{
// increment the value and handle possibility that no value has
// been set yet
lCounter = (Integer) nodeService.getProperty( lEditerFolder,
ContentModel.PROP_COUNTER );
nodeService.setProperty( lEditerFolder,
ContentModel.PROP_COUNTER, ++lCounter );
}
// valeurs des métadonnées par défaut
// nom de fichier
SimpleDateFormat lDateFormat = new SimpleDateFormat( "ddMMyy",
Locale.FRANCE );
String lToday = lDateFormat.format( new Date() );
NumberFormat lNumberFormat = NumberFormat.getInstance();
lNumberFormat.setMinimumIntegerDigits( PAD_LENGTH );
lNumberFormat.setGroupingUsed( false );
String lDocName = lToday
+ lNumberFormat.format( lCounter
% Math.pow( 10, PAD_LENGTH ) ) + PDF_EXTENSION;
// content type
Map<QName, Serializable> lPropertiesMap = nodeService
.getProperties( pActionedUponNodeRef );
// msc:courrier par défaut
lPropertiesMap.putAll( MscPropertyEnum.getInitialPropertiesMap() );
// msc:trace
Date lCreated = (Date) nodeService.getProperty(
pActionedUponNodeRef, ContentModel.PROP_CREATED );
MscPropertyTrace lTrace = new MscPropertyTrace();
lTrace.setWhen( lCreated );
lTrace.setWho( "" );
lPropertiesMap.put( MscPropertyEnum.PROPERTY_TRACE.getQName(),
lTrace.toString() );
// cm:name
lPropertiesMap.put( ContentModel.PROP_NAME, lDocName );
nodeService.setProperties( pActionedUponNodeRef, lPropertiesMap );
}CIFS : "Importes" is the mapped folder with CIFS.Test case :1) Copy/paste from c:\test.pdf to \\alfrescoa\alfresco (CIFS path)The file is imported and remains in "Editer" with name 06020900001.pdf2) Copy/paste from c:\test.pdf to \\alfrescoa\alfresco (CIFS path)The file doesn't appear in whole system (either in CIFS windows folder nor in "Importes" or "Editer" folder).Where is the magic ?Help.