I'm using VC 7.1.4. I've been trying to set up a notification that uses HTTP to push the fact the task ran to a REST endpoint, by sending it the job name and the task name. I've got it set to run on complete for the job, as well as on complete of each task in the job.
The notification is able to access the job name, but not the task name. The endpoint receives task name as null.
I then set up a popup notification to make it clearer. It can't access task either. Here's the body of the popup notification:
Test of notification. Job is {JOB(Active,Name)} Fired from Task {TASK(PrevTask,Name)}
And here's the output inside the popup:
TranslateVariables->Unhandled error: Object reference not set to an instance of an object. on string: Test of notification. Job is Test Logging Fired from Task {TASK(PrevTask,Name)}
What's going on? I've tried every possibility I could think of to get that task name, including {TASK(PrevTask|Name)}, {TASK(Active,Name)}, {TASK(Active|Name)}, and on a whim, even {JOB(Active,Task,Name)}. Nothing works.
To recap, this notification is run at:
On Task start
On Task complete
On Job complete
In all cases, it passes the job name correctly, but fails to pass the task name.
Thanks
Edited by moderator
2014-04-02T19:46:28Z
|
Reason: Not specified