Hi again,
Different day, same kind of problem. I need to write the results of each of our jobs to a log file. Everything works great, no problem with the write file task where event triggers are concerned because the task only writes to the log file IF a file hits the folder and the copy task is activated.
The issue I've got is that with a time trigger, where the folder is polled every 5 minutes or whatever, the write file task records the action even if no file was there and copied. In some cases this means the log file becomes quite big and filled with rubbish basically.
Could someone hold my hand and lead me through setting up a generic condition which would ensure that the write file task only activates IF the copy file task completed (ie. a file was there, copied to new location, deleted from old location).
I don't want to have to create a new condition for every single time trigger / job combination so I need a generic file condition.
I'm using this but it doesn't work:
{TASK(PrevTask,Result.CopiedFilesSource)}
I kind of knew it wouldn't 🙂 But I can't think of anything else that would. All I want to be able to do is tick the box next to the generic condition if I have a time triggered job.
1) Time trigger set to every 5 minutes (for example)
2a) If file is there, copy file task does it's job
2b) If file is not there, job exits before write file task can do it's job.
3) Write file task creates / appends to log file ONLY IF a file was copied.
I hope I'm being clear...:)
Thanks in advance,
Judi