I am either misinterpreting how conditions work or just doing soemthing dumb.
I have a simple job I am using to test my problem. See attached zip file.
Basically:
- Download a file
- if file download succeeded, goto the "Abort" task which sends an email and then writes a "completion" message to a file (tasks 4 and 5)
- Otherwise write some output to a file (tasks 2 and 3)
- finally, send an email and write "completion" message to a file (tasks 4 and 5)
The attahced flowchart appears correct. See attached.
The problem isinstead of exiting after the final task (task 5, "log completion") the job starts runnign again with the first task and keeps runnign until I manually stop it.
I ran it with debug enabeld and the results are even more confusing to me:
7/26/2010 4:48:22 PM Info Job started: Test
7/26/2010 4:48:22 PM Info User "VisualCron Default Admin" - Ran Job: Test
7/26/2010 4:48:22 PM Info Skipping Condition check because the Job was run manually.
7/26/2010 4:48:22 PM Info Task started: Check For File (374)
7/26/2010 4:48:22 PM Info Task completed: Check For File (374)
7/26/2010 4:48:22 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:22 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:22 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:22 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:22 PM Info Task started: Abort (375)
7/26/2010 4:48:23 PM Info Task completed: Abort (375)
7/26/2010 4:48:23 PM Info Task started: log completion (376)
7/26/2010 4:48:23 PM Info Task completed: log completion (376)
7/26/2010 4:48:23 PM Info Task started: Check For File (377)
7/26/2010 4:48:23 PM Info Task completed: Check For File (377)
7/26/2010 4:48:23 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:23 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:23 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:23 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:23 PM Info Task started: Abort (378)
7/26/2010 4:48:23 PM Info Task completed: Abort (378)
7/26/2010 4:48:23 PM Info Task started: log completion (379)
7/26/2010 4:48:24 PM Info Task completed: log completion (379)
7/26/2010 4:48:24 PM Info Task started: Check For File (380)
7/26/2010 4:48:24 PM Info Task completed: Check For File (380)
7/26/2010 4:48:24 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:24 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:24 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:24 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:24 PM Info Task started: Abort (381)
7/26/2010 4:48:24 PM Info Task completed: Abort (381)
7/26/2010 4:48:24 PM Info Task started: log completion (382)
7/26/2010 4:48:24 PM Info Task completed: log completion (382)
7/26/2010 4:48:24 PM Info Task started: Check For File (383)
7/26/2010 4:48:24 PM Info Task completed: Check For File (383)
7/26/2010 4:48:24 PM Debug Running Condition Set: 'Download Succeeded' for Task: Log Download Status
7/26/2010 4:48:24 PM Debug Variable Condition (String->Equal) returned: Match
7/26/2010 4:48:24 PM Debug Condition Set (Task) returned: MatchAll-> ActionRunTask
7/26/2010 4:48:24 PM Debug Condition runs internal Task: log completion
7/26/2010 4:48:24 PM Info Task started: Abort (384)
7/26/2010 4:48:25 PM Info User "VisualCron Default Admin" - Tries to kill/stop processes from specified Job (Test)
7/26/2010 4:48:25 PM Info Task process was aborted by user.
7/26/2010 4:48:25 PM Info Task completed: Abort (384)
7/26/2010 4:48:25 PM Info Job completed: Test
Here are some other relevant screen shots as well.
Any help would be greatly appreciated.
Also, ff anybody has any relatively complex examples of control flow that they would not mind sharing, that woudl be greatly appreciated as well.
Regards,
Chuck
File Attachment(s):
cstump attached the following image(s):