0

在我當前使用IBM Content Collector 4.0.1 SP5和IBM Filenet P8 Content Engine 5.2.1的項目中,我需要從文件系統收集文件並將它們添加到某個P8的對象庫中。IBM Content Collector FS到P8歸檔

報告文件添加到文件夾中八個固定的文件夾和其下的結構dinamically隨着時間的推移以下形式爲yyyy/mm進一步嵌套的文件夾增長:

Folder hierarchy

我從FS to P8 Archiving (Replicate File System and Detect Duplicates).ctms任務路線例如啓動以便在我的對象存儲中擁有複製的結構。

FS to P8 Archiving task route 我們來關注P8 File Document in folder task,特別是File in Folder Options

問題是在我的資源庫中創建的路徑也包含驅動器號(例如:E:\Report\AMM_000001_00001\2017\05),而我想只有從報告文件夾開始複製的文件夾結構。

我該如何做到這一點? 我應該使用正則表達式嗎?

回答

1

我設法在使用正則表達式「P8文件文檔在文件夾」的任務,像這樣以達到預期的效果:

Purpose:   Get a folder path without a drive letter. 
Regular expression: ^[^\\]* 
Replacement string: $1 
Sample text:  C:\folder 1\folder 2 
Sample result:  \folder 1\folder 2 

描述here

相關問題