Page 1 of 1

Email Notification Activity

Posted: Thu Nov 08, 2012 3:46 am
by atulgoel
Hi,

I wanr to send email if any job fails in my sequencer with the job name and log in my email.

Please let me know how can i implement this.

Thanks
Atul

Re: Email Notification Activity

Posted: Thu Nov 08, 2012 3:52 am
by cipsy
Hi

You can use Notification Activity and can use job status and job name ( click to ... and see external paramater). But i thinl you cant attached job log.

Posted: Thu Nov 08, 2012 4:00 am
by atulgoel
I have 5 Job Activity in my sequencer.

How can I pass the a particular job name which has aborted to Notification Acitvity?

Posted: Thu Nov 08, 2012 5:17 am
by cipsy
All job goes to sequencer stage. And sequencer stage goes Notification activity stage.

Posted: Thu Nov 08, 2012 7:03 am
by bhasds
Hi Cipsy,

You can keep a User Variable activity in between the Sequnecer and the Notification activity.

In Uservaribale activity-

Jobname

Code: Select all

If Job_Activity1.$JobStatus =3 Then    Job_Activity1.$JobName Else If Job_Activity2.$JobStatus =3 Then Job_Activity2.$JobName Else If  Job_Activity3.$JobStatus=3 Then Job_Activity2.$JobName Else If Job_Activity4.$JobStatus=3 Else Job_Activity4.$JobName If Job_Activity5.$JobStatus=3 Then Job_Activity5.$Name Else "All Jobs has finished successfully"
In Notification Activity-
In Email Subject call the Uservariable i.e. Jobaneme through External Parameter Helper.

Posted: Thu Nov 08, 2012 7:09 am
by chulett
Or simply enable the "Include job status in email" property in the stage.