2 Replies Latest reply on Jul 14, 2011 12:31 PM by Han Dao

    Write document to a dynamic sub directory

    Han Dao Level 1

      Hello,

       

      I am using the Write Document (FileUtilService) to to write some attachments to a static directory by using the below statement and it works just fine.

       

      Input - Pathname Pattern (XPath expression)

      concat("D:\MyDir\", getDocAttribute(/process_data/attachments[number(/process_data/@attachCount)],"wsfilename"))

       

      Now I would like to them to a dynamic sub-directory like "D:\MyDir\XXXX\"   where XXXX is number that dynamic change by Process ID.

      I try this:   concat("D:\MyDir\process_data/@id$}\", getDocAttribute(/process_data/attachments[number(/process_data/@attachCount)],"wsfilename"))

      but it does not work right.

       

      Can any one please adivse.

       

      Thanks in advance,

      Han Dao