2.1: Design
The first stage of the design process involves identifying the appropriate patterns required for the business processes you are going to implement. For our example, the first step is to create a runtime pattern based on a supplied pattern called Exposed_Business_Service. This is part of the Extended Enterprise or B2B set of business patterns. It provides a service access point for external organisations to consume or use the internal web services of a business. The other recommended patterns will be explained later in the tutorial.
The first step is to select the Runtime Patterns context menu option on the left of the Project screen. This will take us to the Runtime Pattern pool where we can create a new Runtime Pattern. Click on the Services Runtime Pattern category to allow a new service to be created.
Enter Order_Service into the New Filename box, and click on clone pattern. This will take us through to the New Runtime Pattern screen:
Select Exposed_Business_Service from the list of available base patterns, and ensure that Services is selected in the Target Layer dropdown. This sets which base pattern we wish to clone from to create our new runtime pattern, and also sets which layer of the project we would like it to sit in. Now click on the Clone Pattern button to actually perform the clone operation. This will create the necessary Runtime Pattern and will associate a set of business rules (logicsheet) with the agent called Order_Service_Exposed_Business_Service_rules.XML. This will be used in the following sections to add extra functionality to this service.
Returning to the Project screen (top menu option), we can see that that this newly created Runtime Pattern has been added into the Services layer of the project.
At this point, we've created our basic web service. All that remains is to deploy and test it, which we will cover in the following sections.