Set up for Human task email notification:
1. In Enterprise Manager make changes as mentioned in the previous post(Easy
Steps to setup Email Notification in SOA Suite 11g).
2. In Weblogic console change the Email ID of the user to point to the required mail id
3. Start JDeveloper and create Synchronous or asynchronous BPEL Project.
4. The BPEL editor opens up. You will see the basic structure of the BPEL process with a receive and a reply(or callback) activity. Drag a Human Task activity from the Component Palette and drop it after the Recieve Activity. Do the basic settings for the Human task.
5. Right Click on the Human Task and Create Taskflow project for the same.
6. Open the taskflow.xml file which will have taskdetail_jspx, to the same file drag and drop View from the component palette and name it as EmailPage.
7. Drag and drop Router in the taskflow.xml. Right click and select Mark activity->Default Activity
8. Next Update the following Router properties in Property inspector:
· Default Outcome: default
· Add expression : #{pageFlowScope.bpmClientType=="notificationClient"}
9. Connect Router to taskdetail_jspx and Router to Email page using control Flow case.
10. Double click Emailpage view and create Emailpage as jspx.
11. In email page drag and drop task from datacontrols and select taskflow with Email.
12. Deploy and instantiate the App. This should send an email notification with the task details page as the contents when any of the actions are done to the task.
No comments:
Post a Comment