|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP THREE LINKS YOU MUST CLICK ON Business Process Modeling
From Business Modeling to Web Services Implementation
Part 2 - Implementing a Web Service for a Business Process
By: Tilak Mitra
Jun. 7, 2005 04:00 PM
Digg This!
Page 1 of 3
next page »
Part 1 of this article illustrated how to use WBI Modeler 5.1 to model a business process. We used the example of a simple "Web Order" business process and showed how it can be modeled in a BPEL-compliant mode. The artifacts created in Part 1 were exported into the file system for use as the input to the business process implementation - the topic of this article.
It's strongly advised that you complete the business process modeling exercise in Part 1(WebSphere Journal, Volume 4, issue 4) before going through the hands-on exercise illustrated in this section since it's the prerequisite for this article.
Setting up the Project
Each process that's modeled during the business process modeling effort manifests itself as a BPEL file. The format of the file is <process_name>.bpel where process_name is the name of the process that was modeled. In our scenario, we only modeled one process WebOrder and hence we have a file WebOrder.bpel in the ProcessCatalog.WebOrder folder. Double-clicking the bpel file opens it up in the process editor. (See figure 4.) The process flow looks like the one we modeled in Part 1 except for the few a extra elements that appear in its representation in WSADIE. WebOrder Receive represents the input elements that trigger the process initiation. WebOrder Reply represents the output of the process. Between the individual tasks there are Assign elements. There's also a list of variables that are used in the business process. Variables store the messages that are used by a business process. The message within the variable is defined using a WSDL message type that's made up of one or more message parts. An Assign element is used to map the output of a task to the input of a subsequent task. The Assign activity is used to copy values from one variable to another. The Assign activities in our WebOrder business process have already been set and they don't need to be changed unless the process flow has to be altered. Figure 5 shows how an Assign activity copies the output of one task to the input of a subsequent task by copying the message parts of variables. (The Assign activity in the Figure 5 copies the output of the Price Order task to the input of the Save Order task. Clicking on an Assign activity displays its properties in the editor pane). Notice how the Order message part of PriceOrderOutputCriteriaVariable is mapped to the Order message part of SaveOrderInputCriteriavariable. Examining each of the Assign activities helps in understanding how the various tasks are linked together in a business process. Each task in the process is associated with a partner link. Partner links identify the parties that interact with the business process. A partner link defines operations that can be implemented internally or may even map to operations in external Web Services that may be invoked to fulfill the task. Clicking on a partner link shows the task it's associated with. Our business process has all the necessary Variables and Assign activities defined and mapped.
Anatomy of WebOrderInterface WSDL The Messages are used to construct the Variables that are used to copy values between inputs and outputs of individual tasks as the process flows from one task to another. A port type is a named set of abstract operations and messages involved. Each operation refers to an input message and output messages. Figure 7 illustrates how the variables of PriceOrderPT are composed of messages that encapsulate the input and output parameters. Each port type representing a task in our business process needs to be implemented to satisfy the business logic that it's responsible for carrying out. In the next section we'll take the imported artifacts and generate and create implementation code that provides the overall implementation of our business process.
Process Implementation Page 1 of 3 next page » WEBSPHERE LATEST STORIES . . .
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK BREAKING WEBSPHERE NEWS
|
||||||||||||||||||||||||||||||||||||||