Labs SEI >

Table of Contents


Start the VirtualBox image

  1. Start/resume the configured Oracle SOA and BPM Development Virtual Machine.
    More information
  2. Start the weblogic server (let it run in background, it can take up to 10 minutes)
  3. start_wl

Build the first BPEL process

Create the project

  1. Click the JDeveloper icon on the desktop.
  2. Choose Default Role
  3. In the Application Navigator, create a new application.
  4. select_application
  5. Choose the following properties.
    • Application Name = SeiLessons
    • Directory = /home/oracle/jdeveloper/mywork/SeiLessons/
    • Application Package Preffix = sei.soa
    • Application Template = SOA Application
    select_appl_1_3
  6. Select the SOA project property.
  7. select_appl_2_3
  8. Name the composite as ServiceChangeOrder and choose an 'Empty Composite' template
  9. select_appl_3_3

Construct a BPEL process

  1. Drag the BPEL process component to the blank page in the center
  2. create_bpel_1
  3. Name the BPEL process as ServiceChangeOrderName, choose a synchronous BPEL process and change the service name to servicechangeordername_client
  4. create_bpel_2
  5. Double click the created Web Service component and take note the name of the WSDL file
  6. Open and review the WSDL file by double clicking on the file. View the source and design tabs.
  7. select_wsdl_1
  8. In the composite.xml view open (double click) the BPEL component named ServiceChangeOrderName.
  9. Verify the warning present in the BPEL process.
  10. warning_1
  11. Drag the assign activity from the component pallet to the space between receiveInput and replyOutput shapes.
  12. assign_q

Assign values

  1. Copy a value from the input to output.
  2. Open (double-click) the assign shape
  3. Select Copy operation
  4. assign_copy_1
  5. Copy client:input to client:result
  6. assign_copy_2
  7. Recheck the warning at replyOutput shape.

Deploy the process

  1. Click the Save All button.
  2. save_all
  3. Right click the Lab1 project, select deploy and choose ServiceChangeOrder
  4. deploy_1
  5. Choose Deploy to Application Server and click next
  6. Note the revision ID and click next
  7. Choose the localhost-wls and click next
  8. Choose the Default partition of the AdminServer
  9. Review the summary click finish
  10. Follow the log messages in the messages and deployment tab.
  11. deploy_log_1

Test BPEL process

  1. Open a web browser and point it to: http://localhost:7001/em
  2. Use user-pass pair: weblogic welcome1
  3. Select the ServiceChangeOrder composite.
  4. test_bpel_2
  5. Click on the Test Button.
  6. test_bpel_3
  7. Insert a test string in the input field. Then click the test web service button.
  8. test_bpel_5
  9. Check the test result output
  10. Go back to the ServiceChangeOrder Composite and check the flow trace of the new instance.

Modify the service

  1. Edit the XSD parameters file
  2. In JDeveloper select the ServiceChangeOrderName.xsd. Select the design tab.
  3. Change the element name from input to first_param.
  4. change_xsd_1
  5. Insert new element named second_param after the first_param element. Indicate that the element is of the type string.
  6. change_xsd_2
  7. Repeat the process for the output parameters. Create a first_out and a second_out element.
  8. In the assign component, add change parameters. Assign the input first parameter to the output second parameter and vice-versa.
  9. Deploy the process. Check the deployment log tab for any errors.
  10. In the Enterprise Manager test the new process.