Skip to Content
0
Former Member
Dec 01, 2008 at 10:07 AM

Send mail when an expection occurs

16 Views

Hi All,

I am new to workflow and currently working on an enhancement.

I have an activity which distributes budget to measure,if the budget distribution to measure fails an expection is thrown using EXIT_RETURN and the workitem ends in error.

Now the requirement is to send mail to the contact person when the budget distribution fails.

I have modified the task method so that it returns 'X' when distribution fails along with the contact person details.I have a condition to check whether the distribution failed,if yes i have an activity to send mail to the contact person and i am terminating the workflow.

The workflow is not terminated and it continues till the last step.

Can you please guide me how can i achieve termination and also set the activity budget distribution to measure to error after sending the mail.

Many Thanks,

Regards,

Babul.