Creating Task Form sequence flow

In this section, you will create multiple Task Forms in a task flow. These Task Forms will be in sequence. You have already witnessed creation of task flow. There, you have a Create Train checkbox. You will select this option to create a task flow that allows a sequential flow of pages. You will do it for EnterQuoteUI, however you can repeat the same for BusinessAnalystUI, Approve Terms/Deal, and Finalize Contracts, too.

How to do it...

In this section, you will create a Task Form sequence flow:

  1. Open JDeveloper in the default role.
  2. Delete the pre-existing EnterQuoteUI project.
  3. Create a new project by selecting New | Generic Project, and name it EnterQuoteUI.
  4. Click Finish.
  5. This will create Empty Project in the application navigator.
  6. Right-click the EnterQuoteUI project and select New. This will open the new gallery.
  7. Select the All Technologies tab and go to Web Tier | JSF, select the ADF Task flow Based on Human Task item and click OK.
  8. In the SOA Resource browser, select EnterQuoteDetails.task and click OK. This will open the Create Task Flow dialog.
  9. In the Create Task Flow dialog, select Create as Bounded Task Flow and check Create Train.
    How to do it...
  10. Click OK.
  11. This will open EnterQuoteDetails_TaskFlow.xml.
  12. Rename taskDetails1_jspx.jspx as QuoteHeader.jspx.
  13. Go to Component Palette | ADF Task Flow | Components and drag-and-drop View into the designer.
  14. Name the QuoteLines activity as View.
  15. Go to Component Palette | ADF Task Flow | Components and click Control Flow Case.
  16. Create a flow from QuoteHeader to QuoteLines and then to QuoteLines and taskReturn, as shown in the following screenshot:
    How to do it...
  17. Double-click QuoteHeader view. This will open the Create JSF Page dialog.
  18. Enter QuoteHeader.jspx as File Name, as shown in the following screenshot:
    How to do it...
  19. Let the details be default, and click OK. This will open the QuoteHeader.jspx file.
  20. Go to Data Control | EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return and drag-and-drop Task into the designer.
  21. Click Human Task and select Task Header, to create a task header for the page.
    How to do it...
  22. In the Edit Action Binding dialog, click OK twice.
  23. Go to Component Palette | ADF faces | Layout and drag-and-drop Panel Group Layout.
    How to do it...
  24. Go to Data Control | EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return | Payload and drag-and-drop Summary into Panel Group Layout, which you have just created.
  25. Click Form and select ADF Form.
  26. In the filled Edit form, click OK.
  27. When you have completed the preceding steps, Save.
  28. Go to EnterQuoteDetails_TaskFlow.xml and double-click QuoteLines.
  29. In the Create JSF Page dialog, click OK. This will open the QuoteLines.jspx file.
  30. Go to Data Control | EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return and drag-and-drop Task into the designer.
  31. Click Human Task and select Task Header, to create a task header for the page.
  32. In the the Action Binding dialogs, click OK twice.
  33. Go to Component Palette and drag-and-drop Panel Group Layout from the Layout menu.
  34. Go to Property Inspector for the Panel Group Layout and select Vertical as Layout.
    How to do it...
  35. Go to Component Palette and drag-and-drop Panel Group Layout from the Layout section.
  36. Go to Property Inspector for the Panel Group Layout and select Horizontal as Layout.
  37. Go to Component Palette | Common Components and drag-and-drop Output Text into the the Horizontal Panel Group Layout you just created.
  38. In the Property Inspector of this text box, enter Quote Summary as Value.
    How to do it...
  39. Select the Horizontal Panel, click the drop-down and select Insert inside. Choose Button from the list.
    How to do it...
  40. Click on the Button action icon, and select Bind to ADF Control.
    How to do it...

    The Bind to ADF Control dialog will open.

  41. Expand EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return | Task | Payload | Quote Request | Product Items | Operations.
  42. Select Create under Operations as the bind to ADF Control setting for this button in the Bind to ADF Control editing dialog,and click OK.
    How to do it...
  43. Select the horizontal panel, click the drop-down, and select Insert Inside. Choose Button from the list.
  44. Click on the button, click the button action icon, and select Bind to ADF Control.

    A Bind to ADF Control dialog will open.

  45. Expand EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return | Task | Payload | Quote Request | Product Items | Operations.
  46. Select the Create operation under Bind to ADF Control, for this button and click OK.
  47. In the Edit Bind Action dialog, click OK.
  48. Go to Data Control and expand EnterQuoteUI_EnterQuoteDetails | getTaskDetails | Return | Task | Payload | Quote Request.
  49. Drag-and-drop Product Item in the vertical panel.
  50. Click Table and select ADF Table.
    How to do it...
  51. In the Edit Table Column dialog, accept defaults and click OK.
  52. When you have completed the preceding steps, click Save.
  53. You created Task Actions, attachment, and comments, as you have done before.

How it works...

You can verify the JSPX page in the project navigator and from its physical location, too.

  1. You can verify that QuoteHeader.jspx and QuoteLines.jspx are created. The flow can be verified from the task flow XML file.
    How it works...
  2. You can find these files in the /Public_HTML folder in the project directory.

Deploying and testing

You can now deploy the project and can test it, and verify payload from the EM Console, as follows:

  1. Log in to Oracle BPM Workspace as user salesrepresentative.
  2. Click on the process name in the Applications list.
  3. Enter quote details for the Quote Header page, as follows:
    Deploying and testing
  4. Click Actions | Save. This will open the Quote Lines page.
  5. Click the CreateInsert button and you can enter product details, as shown in the following screenshot:
    Deploying and testing

    Once this has been done, you can click the Submit button.

  6. Log in to the Oracle EM Console and click Running Instance for the SalesToContractDemo project.
  7. You can verify the product details you have entered from the Payload of the activities.
    Deploying and testing
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.194.230