igor.karuza-gdi-net-esridist

Attachments - UNC path

Discussion created by igor.karuza-gdi-net-esridist on Oct 27, 2010
Latest reply on Nov 2, 2010 by tbello-esristaff
Hi!

I have spent last two days trying to figure out how to implement the following workflow steps in Worflow Manager...

Steps:
(1) Automatically create a new folder on predefined UNC path (format ABC-xxxxx ; e.g. ABC-00001) - data repository for all documents concerning current workflow.
(2) Upload attachments (documents) to the working folder (UNC path)
(3) ....

Possible resolution - Desktop client:
(1) Custom step is being used --> GP function Create folder (in the UNC path). This is not the final solution, but only Quick Fix. The final solution would be creating Custom step (Developer Kit solution) that would programatically create correctly formated folder name.
(2) Attachments could be added in one of the two formats: Embeded and Linked. If Linked type is chosen, then a local link to document is added. What my workflow demands is that attachments are being uploaded to UNC path (e.g. \\server-name\Docs\MyDocument.doc). If I am right, achieve that, the user sould do 2 steps. Via Windows Explorer upload document to UNC path, and then add it as Attacment in the workflow manager.
Is there any way (without programming) to add an Linked attachment from local computer and that it is being stored in the folder on the UNC path? I have looked through Developer Kit samples, and find out two components that could be merged in one solution to fix my problem:
- Custom Job Tab,
- Custom Steps - Add Attachment.
The solution would be to hide current Attachment tab and create a Custom one, that would load local files, store them on the UNC path, and then add them as Local attachment.

I would use upper solution if only Desktop client is supposed to be used. I have to use Web client too (FLEX or JavaScript Viewer). Through this clients I only can handle Embeded attachments... and there is no Developer Kit for this clients... :-(

Is there any solution for this issue?

Maybe the best thing would be to handle all documents as Embeded Attachments, so the Desktop and Web clients could handle them, and as the LAST STEP in the Workflow to copy them to UNC folder. (Is there any example how to create that Custom step --> copy all embeded attachments to physical folder.)

I have another question. If in the first step Create folder on UNC path, how can that information be passed to the next steps?

Br,

Igor Karuza
GISDATA d.o.o.

Outcomes