Figure 56 Explorer View and Location of Predefined Standards Based Templates

Now that we know where the templates are and why they are there, let's learn to work with them.

1. Go to the File menu, and select New.

2. The New Document Specification dialog box will open (Figure 5.3). Select XML.

3. Double-clicking on the XML template will open the list of XML templates within the XML Specification. Select the one named CommonPO.xml. If you cannot see this, select List view in the dialog box as shown in Figure 5.7.You can select this view by clicking on the List icon in the upper right of the dialog box. It will list all the templates and you will now be able to better read the XML documents.

4. Double-click on the CommonPO.xml template to open the BizTalk Editor with the predefined standard specification you just chose (Figure 5.8).We had you select the common PO to see what a professional PO

would look like within BizTalk 2000.We only made a very rough one here, because you would customize it based on your organizational and business needs. Remember, when working with BizTalk Server 2000, you also can wear the hat of a business analyst.

Figure 5.7 The New Document Specification Dialog Box in List View

Figure 5.7 The New Document Specification Dialog Box in List View

Figure 5.8 BizTalk Editor with the CommonPO.xml Template Selected and Opened

5. Referring back to the BizTalk Editor dialog box in Figure 5.8, you can see that we selected and highlighted the ExchangeRate field in the left pane, and we are viewing the field properties within the right pane.

6. Left-click on the Description Value and alter the description to Rate Of Exchange 2001 to reference the year.You could make new fields under records to reference the month, or any other time the rate changes. This is, of course, a very simple change, and is only meant to show you that you could change it and how. Now, let's change the Data Type.

7. Left-click on the Data Type value and you will see a long list of values that you can change.The original setting is for Real (r4). Real (r4) means that this field contains a number that has a minimum value of 1.17549435E-38F and a maximum value of 3.40282347E+38F, meaning that a number within that range is acceptable. Let's change this Data Type.

8. Within the list, select Number from near the top of the list, and make that the new Data Type. Number suggests that the data contains digits and can have a leading sign, fractional digits, or exponents. An example could be number 1.

That's it! You just modified a preexisting specification. A template gives you a good framework from which to begin your work.You can always save your templates with another name and modify them later to suit your needs. Setting up specifications from scratch to fit particular situations can be very time consuming; modifying existing templates is a good alternative.

One other aspect of the BizTalk Editor we would like mention is its drag-and-drop functionality. As Figure 5.9 illustrates, all you need to do is left-click an item, hold down the mouse button, and drag it to a different Record container, or change its order within the current Record container, and then release the button to complete the move.

Was this article helpful?

0 0

Post a comment