Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


t2c_running
2017-04-28T11:54:49Z
Hello all,

We wish to send via Notification -> Mail or Notification -> Write File, information about tasks such as name, stdout, num of executions, etc.

scenario.png

notif_config.png

When the Notification task runs, the expected result is other 😔

result.png

Please, can you help us in order to have the name, stdout, num of executions, etc. for each Task that we have configured with it?

Regards.


Edit: I'm running VisualCron v. 8.2.3
Sponsor
Forum information
t2c_running
2017-05-02T19:42:23Z
Hello

Any news or tips about our question?

Regards.
thomas
2017-05-03T09:17:22Z
Which part isn't working here? Seems to me you are getting the results you want in the last image?
thomas
2017-05-03T09:20:10Z
ok, For Tasks you should use PrevTask, not Active.
t2c_running
2017-05-05T06:09:04Z
Originally Posted by: thomas 

ok, For Tasks you should use PrevTask, not Active.



Hello Thomas,

We would like an output file with the Task Name and Task Output when the Task has been completed via Notification.
The file content should be:

4 {TASK ID}
5 This is the task name
6 {Content of the file set in the Read file task}
7 {Info if there was an error in order to read the file, such as "File not found"}

Thanks.
ErikC
2017-05-05T07:59:33Z
Hi t2c,

As a notification runs after the task is complete, for every task variable you should use the Prevtask as Thomas said.
For job issues, you do not need the Prev as you are still in the current job.

Example: the task id will be: {TASK(PrevTask,Id)}

Regards
Erik



Uses Visualcron since 2006.
t2c_running
2017-05-08T15:24:20Z
Originally Posted by: ErikC 

Hi t2c,

As a notification runs after the task is complete, for every task variable you should use the Prevtask as Thomas said.
For job issues, you do not need the Prev as you are still in the current job.

Example: the task id will be: {TASK(PrevTask,Id)}

Regards
Erik




I just tested PrevTask, the expected is correct

Thank you very much.
Scroll to Top