Oracle BPEL Email Notification – Remove Attachment



If you have used the email notification activity in Oracle BPEL (up through the latest version at the time of this writing, 10.1.3.3.1), you might have found that you always get an attachment for your email body, even if you don’t want one.  There is a solution:

Once in the scope of the email notification activity, look for a copy block like the following.  It typically contains ‘NotificationAttachment1.html’:

1
2
3
4
5
<copy>
<from expression=”string(’NotificationAttachment1.html’)/>
<to variable=”varNotificationReq” part=”EmailPayload”
query=”/EmailPayload/ns1:Content/ns1:ContentBody/ns1:MultiPart/ns1:BodyPart[1]/ns1:BodyPartName”/>
</copy>

You should remove this completely and voila – you’re email with show up in the body of the email. 

Note: you should still pick multipart message with 1 attachment (just unintuitive UI in JDeveloper for this).  So, if you pick 2 attachments, you will actually get 1 attachment.

Bookmark and Share

Related Information:

  1. Google Docs Notification Rules – Docs vs Spreadsheets
    I initially thought this was...
  2. Oracle BPEL Sensors for Real Time Event Publishing from Business Processes – A Design Perspective
    This article is a look...
  3. Oracle BPEL – Wait Activity Stuck or Hanging – Never Returns to Console
    This is a very, very...
  4. AddThis – Email Option
    If you have tried using...
  5. Oracle DBMS_SCHEDULER vs DBMS_JOB (Create, Run, Monitor, Remove)
     DBMS_SCHEDULER is a newer,...
  6. Print REMOTE_USER CGI Variable in JSP on WebLogic 11g
    There could be a number...
  7. Asynchronous vs Synchronous BPEL Processes
    Asynchronous and Synchronous BPEL processes,...
  8. Oracle Forms – Remove List Element from List Item
    This one is a little...

Leave a Reply