Approval Process in SOA Suite 12c Using Human Task Flow

Introduction:

Human Task flow in Oracle SOA Suite is similar to the Workflow process in Oracle E-Business suite. It has different types of approval/rejection process like single user, group of user and chain of user. Oracle SOA Suite also provides an interface for the user to interact with the taskflow. Oracle ADF taskflow develops the user interface within the SOA composite for the approval taskflow. User can access the approval flow process in BPM worklist as Human Task Flow is an integrated part of BPM Suite. So the whole taskflow process will consists of below steps:

  1. Create Human Task component in SOA composite
  2. Associate the Human Task to BPEL component
  3. Generate Task flow for user interface using ADF taskflow during runtime in Oracle BPM Worklist.

Here I am going to give a simple example of Human Taskflow. Approval will go to single user by giving any input value.

Steps for implementing Human Taskflow Process:

  1. Create an application. Click on File -> New -> Application. Select SOA Application and Enter application name a�?HumanTaskFlowApplicationa��.Human_taskFlow_1 Human_taskFlow_2 Human_taskFlow_3
  2. Click on Next and enter project name a�?HumanTaskFlowDemoa��Human_taskFlow_4
  3. Click on Next and select composite type as a�?Composite With human Taska��Human_taskFlow_5
  4. Click on Finish and a�?Create Human taska�� wizard will open. Enter task name a�?ApproveTaska��Human_taskFlow_6
  5. Click on OK and .task file will be created. It looks like below screenshot.Human_taskFlow_7
  6. Go to a�?Generala�� tab and enter a�?Task Titlea��. Click on a�?Build title from XPatha�� and enter a�?Dummy Task Flowa�� in the expression builder.Human_taskFlow_8 Human_taskFlow_9
  7. Select owner as UserHuman_taskFlow_10
  8. Go to a�?Dataa�� tab and click on green plus icon to add parameter. Select a�?Add string parametera��Human_taskFlow_11
  9. Enter parameter name a�?parama�� and click on OKHuman_taskFlow_12 Human_taskFlow_13
  10. Go to a�?Assignmenta�� tab and select a�?Single Participanta�� from Participants in the components and drag and drop it into the stage.Human_taskFlow_14
  11. Double click on a�?Participanta�� and select user here who will approve the task.Human_taskFlow_15
  12. Click on green plus icon and select a�?Add Usera��Human_taskFlow_16 Human_taskFlow_17
  13. Click on Browse button and select user as a�?weblogica��Human_taskFlow_18 Human_taskFlow_19
  14. Click on OKHuman_taskFlow_20
  15. User can be created in SOA Administration Console. Go to a�?Security Realmsa�� and select a�?myrealma��. Click on a�?Newa�� and create new user. Here I am selecting weblogic.Human_taskFlow_21 Human_taskFlow_22
  16. Drag and drop a BPEL service in the a�?Componentsa�� laneHuman_taskFlow_23
  17. a�?Create BPEL Processa�� wizard will open. Enter BPEL process name and select template type as a�?Asynchronous BPEL Processa��. Expose the BPEL process as SOAP service also.Human_taskFlow_24
  18. Click on OK and connect BPEL process with the Human Task Flow. SOA Composite will look like this.Human_taskFlow_25
  19. Double click on BPEL processHuman_taskFlow_26
  20. Select a�?Human taska�� from SOA Components and drag and drop it in between a�?receiveInputa�� and a�?callbackClienta��Human_taskFlow_27
  21. a�?Human Task Editora�� wizard will open and select Task DefinitionHuman_taskFlow_28
  22. Now select Task Parameter. Task Parameter will be the input payload.Human_taskFlow_29 Human_taskFlow_30
  23. Click on OK and the BPEL process will be like the below screenshotHuman_taskFlow_31
  24. If-else condition will be created with the Human Task. Click on plus icon of a�?Approval Taska��Human_taskFlow_32
  25. Delete the ELSE part. Double click on a�?Assigna�� activity in the a�?Approvea�� conditionHuman_taskFlow_33
  26. Assign the output payload with the a�?task:outcome stringa��Human_taskFlow_34
  27. Drag and drop a�?Assigna�� activity in the a�?Rejecta�� conditionHuman_taskFlow_35
  28. Add a message in the output payload. Right click on output payload and select a�?Expressiona��Human_taskFlow_36
  29. Add a�?Task is rejecteda�� in the expressionHuman_taskFlow_37 Human_taskFlow_38
  30. BPEL process will look like the below screenshotHuman_taskFlow_39
  31. Save the application. Go to Human Task Flow (.task) and select Form -> Auto Generate Task Form and enter the project name a�?WorklistDemoa��Human_taskFlow_40 Human_taskFlow_41
  32. ADF task flow will be created. Save itHuman_taskFlow_42
  33. Two projects have created under same applicationHuman_taskFlow_43
  34. Now deploy the projects. Right click on a�?HumanTaskFlowDemoa�� project and select deployHuman_taskFlow_44
  35. Select a�?Deploy to application servera�� as deployment actionHuman_taskFlow_45
  36. Click on Next and change the option according to the below screenshotHuman_taskFlow_46
  37. Click on Next and select a�?WorklistDemoa�� project for task flow deploymentHuman_taskFlow_47
  38. Click on Next and select SOA server and partitionHuman_taskFlow_48
  39. Select repository name and then click on a�?Deploya��. Deployment is finished.Human_taskFlow_49
  40. Test the project. Open Enterprise Manager Console and select the project. Click on a�?Testa��Human_taskFlow_50
  41. Enter any characters as input valueHuman_taskFlow_51
  42. Click on a�?Test Web Servicea��Human_taskFlow_52
  43. Navigate to a�?Launch Flow Tracea��. In flow trace BPEL process and Approve Task workflow process are in a�?Runninga�� status.Human_taskFlow_53
  44. Click on a�?HumanTaskBPELProcessa�� and check the audit trail part. BPEL process is pending with the Approve Task workflow process until and unless the workflow process is approved by the user a�?weblogica��.Human_taskFlow_54
  45. Login to BPM Worklist (http://localhost:7101/integration/worklistapp) and approve the task flow. Select the task and navigate to Action -> ApproveHuman_taskFlow_55
  46. Go back to EM Console and check the a�?Flow Tracea��. BPEL process and Approve Task Flow process are completed now.Human_taskFlow_56

This is the workflow process in SOA Suite 12C. ADF task flow is integrated with Human Task. You can generate your own ADF task flow also and integrate with Human Task Flow.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show my latest post here