Home
TeamSite
Files attaching to Jobs
Hazzie
Hi all,
My workflow has a number of steps one of which is to do a iwlistmod to find all modified files in a workarea.
This is then preseted to the user via a cgi screen with a check box next to each file. They select the files they want and press submit and thet get attached to the job.
However, Workflows in their nature can come round full circle and so this listmod routine can run again. This time when the cgi screen is presented to the user i want the files that are already attached to be pre selected in the checkboxes. I was wondering is there a CLT or a WFTASK cmd that i can run against a file to ask if it is attached to a particular job? I have gone through them and all i can see is $task->GetFiles(); but i already have an array of files and i dont want to loop through another array just to check if its apart of the job. I was hoping i missed soemthing in the CLT book.
So in short, is there a command i can run against a file to find out if its attached to a job?
Ta,
Hazzie
TS 5.5.2 on NT.
Find more posts tagged with
Comments
Jeremy
Hi,
I am not sure if you've seen this command line tool:
iwgetfilejobs
I found it in the CLT manual - I am currently on Solaris but am assuming the tool is also available on NT.
Feeding in a file name it returns job and task ID's that it is associated with.
Hope that helps.
Jeremy
Hazzie
Cheers, i couldnt see the wood for the trees so to speak.
Hazzie
TS 5.5.2 on NT.
Hazzie
Thanks i now have it working.
On sunday i had coded the two loops just in case there wasnt anything in the way of a CLT but when you take into account the users are attaching what can be 200-300 .xml files all with dcr's and a lot with ASP's and graphics etc then you can appreciate the 2 loop method is not very efficent.
Thanks.
Hazzie
TS 5.5.2 on NT.