This is how submit workflows have always functioned. As far as I know, there is no way to tell whether the files were checked or not.~Jeff
Thanks Jeff.... but the workflow i am using is my own customised workflow. It is not the default one. Also a query ... which is the best way to attach the files to wf?It is to use iw_file and then substitute the xml of files-->file element OR use of iw_files variable?
&declare_workflow( ... files => \@FileList);
I know it is a customized workflow, but for submit workflows there is no way to tell whether the user selected the files or the ui did.As far as the best way to attach files, I would assume you are using WFconstructor. Just include the list in your declare_workflow call: &declare_workflow(...files => \@FileList); ~Jeff
&declare_workflow(...files => \@FileList);
Not sure why you aren't using WFconstructor, but just add the files element to your start task.~Jeff
Does this matter if you call workflow from Submit, New Job, Finish button or using some other way? I believe WF code will remain the same and it doesnt matter how it is invoked
I believe that is a workflow is activated by the 'submit' command - and attaches "pre-selected" files to the start task - that it will either use the actual pre-selected files or the list of all modified files in the current directory and below.If the same workflow is activated by 'new_job' I believe it will only look at actual pre-selected files, and not try to find all modified files in the current directory if there are no pre-selected files.
Does anyone know of a workaround to stop, or at least ignore, the files that are passed on automatically when nothing is selected?
I don't believe this should be happening for New Job, only for Submit. Submit workflows have always worked this way and as far as I am aware there is no way to tell whether the user selected the files or the system did.~Jeff
Actually I found one. Posted in another thread. Basically I made a new button that starts a new job. If no files are selected, no files are attached.