esribg

How to attach a file to a job in Workflow manager

Discussion created by esribg on May 16, 2011
Latest reply on May 31, 2011 by tbello-esristaff
Hi to all,

Is the tool of WFM which attach a file to a job working correctly? Or is that tool need some additional adjustment?

This question occured when I tried to attach a file to a selected job, but the job was not successfully added in my database. WFM didn't show a message about this. When I checked the source code in debug time I noticed that the workflow of my Flash Builder passed through that lines of code which indicate that the file is successfully uploaded, but unfortunately neighter WFM neighter my ARC Catalog reflects that fact. Actually only the name of the file exists in ArcCatalog and all other fields of the same row in the table JTX_JOB_ATTACHMENTS are empty. WFM still points that there are no attachments to that job in spite of the fact that I just added an attachment.

In source code:
/*
             .........
                file.addEventListener(Event.COMPLETE, onLoadComplete);
         file.addEventListener(IOErrorEvent.IO_ERROR, onLoadError);
                file.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onLoadError);
         file.load();
             .........
*/

so here file.data is null, but onLoadComplete handler is activated.

I need some help !

Thanks !

Outcomes