KEMBAR78
Exception Subprocess With Mail | PDF
100% found this document useful (2 votes)
408 views4 pages

Exception Subprocess With Mail

The document outlines the process of setting up an Exception Sub-Process in an iFlow to handle errors by sending alert emails. It details the steps to configure the process, including modifying message content and setting up the MAIL adapter for email notifications. An example message template for the email alert is provided, along with instructions for maintaining connection details and deploying the iFlow.

Uploaded by

kittugrepthor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
408 views4 pages

Exception Subprocess With Mail

The document outlines the process of setting up an Exception Sub-Process in an iFlow to handle errors by sending alert emails. It details the steps to configure the process, including modifying message content and setting up the MAIL adapter for email notifications. An example message template for the email alert is provided, along with instructions for maintaining connection details and deploying the iFlow.

Uploaded by

kittugrepthor
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Exception subprocess: Mainly used to raise an alert if any error in our Iflow.

Working:

If any error occurs during message processing, Exception Sub-Process will generate an email
and will send it to the given distribution list which we will configure in the MAIL adapter.

Let's into it and see how it will work in iflow

Below is the Exception Sub Process. To create this in i-Flow go to Pallets > Process>Exception
Sub Process

Remove End Pallet and add Error End Pallet instead of that because end pallet will ends the
message, Below snapshot as reference.

Then go to Pallets > Transformation> Content Modifier and add it to the Exception Sub Process.
Content Modifier allows us to modify a message by changing the content of the data
containers that are involved in message processing

We need to write the below message in Message Body as shown below to get email when
there is any error in our iflow

Hello Team,

Message has been failed with below error:

Error detail: ${exception.message}

MsgID: ${property.SAP_MessageProcessingLogID}

Iflow Name: ${camelId}

Date: ${date:now:dd-MM-yyyy HH:mm}

Thanks & Regards,

YourTeam
Then go to Pallets > Call > External Call > Send and add it to the flow.
Here Send pallet will send the request to the receiver we configure.

Go to Pallets>Participant > Receiver add this Receiver to the flow and connect this with Send
request by using MAIL adapter.

And then we need to maintain connection details as below for EMAIL


Save and deploy your iflow.

Note: I intentionally ran iflow into error to check the exception subprocess status and below is
the error alert email received from the CPI

You might also like