Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your profile (name, country/region, and company) is displayed to the public and will accompany any content you post. You may update your IBM account at any time.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

developerWorks Community:

  • Close [x]

Build and deploy a business process model using WebSphere Business Process Modeler Advanced and Lotus Forms, Part 2: Implement and test the BPEL process using WebSphere Integration Developer

Attila Kiss (attila_kiss_bme@yahoo.com), Student, Budapest University of Technology and Economics
Attila Kiss
Attila Kiss attends Budapest University of Technology and Economics and will graduate as a Computer Science Engineer in 2008. He specializes in IT infrastructure management. He has been working with WebSphere products with special focus on business modeling.
Viktor Muller (viktormuller@gmail.com), Student, Budapest University of Technology and Economics
Viktor Muller Photo
Viktor Müller attends Budapest University of Technology and Economics and graduates as a Computer Science Engineer in 2009. He specializes in information system development. He has worked with WebSphere products with a special focus on BPEL development.

Summary:  Learn how to use IBM® WebSphere® Integration Developer to implement and customize a Business Process Execution Language (BPEL) process and then test it in WebSphere Process Server. Part 2 of this tutorial series shows you the steps for generating the Web interface, assembling the components, and testing the solution.

View more content in this series

Date:  15 Apr 2009
Level:  Intermediate PDF:  A4 and Letter (3098 KB | 55 pages)Get Adobe® Reader®

Activity:  13364 views
Comments:  

Implementing the loop condition

This section describes how to implement the loop condition.

Implementing IncrementInterviewCount and SetInterviewCount

In Business Modeler you defined the loop condition so that it iterates until the applicant fails or he passes three rounds. To make this condition work, you need to initialize the variable counting the number of iterations and increment the variable at the end of each iteration.

  1. Right-click intVariable.
  2. Select Rename .
  3. Type InterviewCountVariable.
  4. Next create a snippet IncrementInterviewCount to increment InterviewCountVariable at the end of each iteration.
  5. Drag and Drop a Snippet after Interview.

    Figure 39. Dragging and dropping a Java snippet
    Dragging and dropping a Java snippet

  6. Rename it to IncrementInterviewCount.
  7. Navigate to Properties > Details.
  8. Drag and drop InterviewCountVariable to the canvas from the right-hand side of the palette.
  9. Drag and drop an Expression to the canvas.
  10. Click on the empty Expression.
  11. Select InterviewCountVariable from the popup menu.
  12. Select “+” from the next popup menu.
  13. Select Number from the next popup menu.
  14. Type 1 in the text field that popped up.
  15. Drag the yellow handle – it appears at the right-hand side of the expression when you hover your mouse over it – to the left-hand side of the variable InterviewCountVariable.

    Figure 40. Adding a link
    Adding                                 a link



    Figure 41. The IncrementInterviewCount snippet
    The                                 IncrementInterviewCount snippet

    Next you will create a new task to initialize InterviewCountVariable.

  16. Drag and drop an Assign task to the process canvas.
  17. Name it SetInterviewCount.
  18. Choose Number in the Select From drop-down list.
  19. Enter 0 in the text area.
  20. Choose InterviewCountVariable for Select To.

    Figure 42. Initializing the InterviewCountVariable
    Initializing the InterviewCountVariable

  21. Link the SetInterviewCount snippet right before the loop.

    Figure 43. Linking the SetInterviewCount snippit
    Linking                                 the SetInterviewCount snippit


Changing the loop condition

Because you changed the name of the variable intVariable in the previous steps, you need to propagate this change to the loop condition where you use that variable to determine how many interview rounds the applicant has already passed.

  1. Click Interview loop.
  2. Navigate to Properties => Details.
  3. In the text editor replace intVariable with InterviewCountVariable.

    Figure 44. Changing the loop condition
    Changing the loop condition

6 of 14 | Previous | Next

Comments



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Business process management, WebSphere
ArticleID=432422
TutorialTitle=Build and deploy a business process model using WebSphere Business Process Modeler Advanced and Lotus Forms, Part 2: Implement and test the BPEL process using WebSphere Integration Developer
publish-date=04152009
author1-email=attila_kiss_bme@yahoo.com
author1-email-cc=crothemi@us.ibm.com
author2-email=viktormuller@gmail.com
author2-email-cc=crothemi@us.ibm.com