32
TIBCO™ BusinessWorks QuickStart Software Release 2.0.0 November 2002

TIBCO Business Works - Quick Start - Nov 2002

  • Upload
    naveen

  • View
    109

  • Download
    1

Embed Size (px)

Citation preview

Page 1: TIBCO Business Works - Quick Start - Nov 2002

TIBCO™ BusinessWorks

QuickStartSoftware Release 2.0.0November 2002

Page 2: TIBCO Business Works - Quick Start - Nov 2002

Important Information

SOME TIBCO SOFTWARE EMBEDS OR BUNDLES OTHER TIBCO SOFTWARE. USE OF SUCH EMBEDDED OR BUNDLED TIBCO SOFTWARE IS SOLELY TO ENABLE THE FUNCTIONALITY (OR PROVIDE LIMITED ADD-ON FUNCTIONALITY) OF THE LICENSED TIBCO SOFTWARE. THE EMBEDDED OR BUNDLED SOFTWARE IS NOT LICENSED TO BE USED OR ACCESSED BY ANY OTHER TIBCO SOFTWARE OR FOR ANY OTHER PURPOSE.

USE OF TIBCO SOFTWARE AND THIS DOCUMENT IS SUBJECT TO THE TERMS AND CONDITIONS OF A LICENSE AGREEMENT FOUND IN EITHER A SEPARATELY EXECUTED SOFTWARE LICENSE AGREEMENT, OR, IF THERE IS NO SUCH SEPARATE AGREEMENT, THE CLICKWRAP END USER LICENSE AGREEMENT WHICH IS DISPLAYED DURING DOWNLOAD OR INSTALLATION OF THE SOFTWARE (AND WHICH IS DUPLICATED IN THE TIBCO BUSINESSWORKS CONCEPTS DOCUMENT). USE OF THIS DOCUMENT IS SUBJECT TO THOSE TERMS AND CONDITIONS, AND YOUR USE HEREOF SHALL CONSTITUTE ACCEPTANCE OF AND AN AGREEMENT TO BE BOUND BY THE SAME.

This document contains confidential information that is subject to U.S. and international copyright laws and treaties. No part of this document may be reproduced in any form without the written authorization of TIBCO Software Inc.

Technologies described herein are covered by existing patents and pending patent applications. TIBCO technology is protected under US patent number 6,003,011.

TIB, TIBCO, Information Bus, The Power of Now, TIBCO Rendezvous, TIBCO BusinessWorks, TIBCO Administrator, and TIBCO Designer are either registered trademarks or trademarks of TIBCO Software Inc. in the United States and/or other countries.

EJB, J2EE, JMS and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

All other product and company names and marks mentioned in this document are the property of their respective owners and are mentioned for identification purposes only.

THIS DOCUMENT IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.

THIS DOCUMENT COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THIS DOCUMENT. TIBCO SOFTWARE INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS DOCUMENT AT ANY TIME.

Copyright © 2001-2002 TIBCO Software Inc. ALL RIGHTS RESERVED.

TIBCO Software Inc. Confidential Information

Page 3: TIBCO Business Works - Quick Start - Nov 2002

| iii

Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v

Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viTIBCO BusinessWorks Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viOther Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vi

How to Contact TIBCO Customer Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii

TIBCO BusinessWorks QuickStart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2Overview of Example Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4Starting TIBCO Designer and Saving Your Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5TIBCO Designer Main Window . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7Creating the FileTest Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10Testing the FileTest Process . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Creating a Deployment Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17Deploying the Project. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Starting the Process Engine from TIBCO Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20Run-Time Monitoring Using TIBCO Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21Setting Tracing Options Using TIBCO Administrator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

TIBCO BusinessWorks QuickStart

Page 4: TIBCO Business Works - Quick Start - Nov 2002

iv | Contents

TIBCO BusinessWorks QuickStart

Page 5: TIBCO Business Works - Quick Start - Nov 2002

| v

Preface

TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration projects. TIBCO BusinessWorks includes a graphical user interface (GUI) for defining business processes, an engine that executes the process, and a web-based GUI for monitoring and managing projects at run-time.

Topics

• Related Documentation, page vi

• How to Contact TIBCO Customer Support, page vii

TIBCO BusinessWorks QuickStart

Page 6: TIBCO Business Works - Quick Start - Nov 2002

vi | Preface

Related Documentation

TIBCO BusinessWorks DocumentationIn addition to this manual, the following documents are part of the TIBCO BusinessWorks documentation set:

• TIBCO BusinessWorks Concepts Read this manual before reading any other manual in the documentation set. This manual describes terminology and concepts of TIBCO BusinessWorks, and the other manuals in the documentation set assume you are familiar with the information in this manual.

• TIBCO BusinessWorks Quick Start This manual steps you through a very simple example of designing, deploying, and monitoring a TIBCO BusinessWorks process.

• TIBCO BusinessWorks Business Process Design Guide This manual describes how to create, edit, and test business processes using TIBCO BusinessWorks.

• TIBCO BusinessWorks Business Palette Reference This manual describes each of the palettes available in TIBCO BusinessWorks.

• TIBCO BusinessWorks Installation Read this manual for information on installing one or more components of TIBCO BusinessWorks and setting up a TIBCO BusinessWorks domain.

• TIBCO BusinessWorks Release Notes Read the release notes for a list of new and changed features. This document also contains lists of known issues and closes issues for this release.

Other DocumentationTIBCO BusinessWorks is bundled with other products. You will therefore find the documentation for those products useful:

• TIBCO Designer documentation. TIBCO Designer is an easy to use graphical user interface for design-time configuration of TIBCO applications. TIBCO Designer includes online help for each palette.

• TIBCO Administrator documentation. TIBCO Administrator is the monitoring and managing interface for new-generation TIBCO products such as TIBCO BusinessWorks.

• TIBCO Adapter product documentation

TIBCO BusinessWorks QuickStart

Page 7: TIBCO Business Works - Quick Start - Nov 2002

How to Contact TIBCO Customer Support | vii

How to Contact TIBCO Customer Support

For comments or problems with this manual or the software it addresses, please contact TIBCO Product Support at:

http://support.tibco.com

Entry to this site requires a username and password. If you do not have a username, you can request one. You must have a valid maintenance or support contract to use this site.

TIBCO BusinessWorks QuickStart

Page 8: TIBCO Business Works - Quick Start - Nov 2002

viii | Preface

TIBCO BusinessWorks QuickStart

Page 9: TIBCO Business Works - Quick Start - Nov 2002

| 1

TIBCO BusinessWorks QuickStart

This QuickStart document steps you through the process of designing, deploying, and monitoring a simple TIBCO BusinessWorks project.

Topics

• Introduction, page 2

• Prerequisites, page 4

• Starting TIBCO Designer and Saving Your Project, page 5

• Creating the FileTest Process, page 10

• Testing the FileTest Process, page 15

• Creating a Deployment Configuration, page 17

• Deploying the Project, page 19

• Starting the Process Engine from TIBCO Administrator, page 20

• Setting Tracing Options Using TIBCO Administrator, page 23

TIBCO BusinessWorks QuickStart

Page 10: TIBCO Business Works - Quick Start - Nov 2002

2 | TIBCO BusinessWorks QuickStart

Introduction

This tutorial steps you through the creation of a simple TIBCO BusinessWorks project. The goal of this tutorial is to introduce you to the BusinessWorks project lifecycle. The phases of the project lifecycle are similar to standard project phases:

1. Design — determining the requirements of the system, developing a prototype solution to your business needs.

2. Testing — running the system to determine that it works properly and meets the project’s requirements.

3. Deployment — specifying the physical layout of your system for its intended environment. This includes determining which machine to run components on and specifying the runtime characteristics of the system.

4. Production — monitoring and managing the system in its intended environment.

The project in this tutorial is fairly simple so that you can focus on how to use BusinessWorks within each phase of the project lifecycle. Once you complete the tutorial, you should be more comfortable applying the methodology to your own projects.

Before starting this tutorial, you should become familiar with TIBCO BusinessWorks terminology and basic concepts. It is not necessary to learn all aspects of BusinessWorks, but you should at least read Chapter 1 of TIBCO BusinessWorks Concepts. That chapter introduces much of the terminology that will be used in this tutorial. TIBCO Designer Main Window on page 7 is a summary of key concepts you should be familiar with.

Overview of Example ProcessThe project you will create watches a directory for a specific file. When the file changes, a new file is created that contains the contents of the original file plus the time the change was made to the original file. The new file is named after the change that occurred (create.txt, modify.txt, or remove.txt). If you modify the file multiple times, the new file overwrites the existing modify.txt.

With this simple project, you will perform many of the same tasks that are required for larger, more complex projects. This tutorial is not intended to illustrate every aspect of TIBCO BusinessWorks, so only a small subset of the available activities will be used.

TIBCO BusinessWorks QuickStart

Page 11: TIBCO Business Works - Quick Start - Nov 2002

Introduction | 3

The tutorial steps you through the following tasks:• Starting TIBCO Designer and Saving Your Project

• Creating the FileTest Process

• Testing the FileTest Process

• Creating a Deployment Configuration

• Deploying the Project

• Starting the Process Engine from TIBCO Administrator

• Setting Tracing Options Using TIBCO Administrator

TIBCO BusinessWorks QuickStart

Page 12: TIBCO Business Works - Quick Start - Nov 2002

4 | TIBCO BusinessWorks QuickStart

Prerequisites

To perform the tasks in this tutorial, you must have installed and configured the TIBCO BusinessWorks software properly.

1. Install all components of TIBCO BusinessWorks on your system.

2. Make sure you know the name of the domain and the name and password of the administrator for the domain. You need this information to save your project.

3. Make sure you have either Internet Explorer 5.5 or 6.0 or Netscape 6.2 or 7.0 available on your system. One of these web browsers must be used to monitor your running project.

For more information about installing TIBCO BusinessWorks and setting up your domain, see TIBCO BusinessWorks Administrator’s Guide.

TIBCO BusinessWorks QuickStart

Page 13: TIBCO Business Works - Quick Start - Nov 2002

Starting TIBCO Designer and Saving Your Project | 5

Starting TIBCO Designer and Saving Your Project

To start TIBCO Designer and save your server-based project, follow these steps:

1. From the Start menu, choose Programs > Tibco > TIBCO BusinessWorks 2.0 > Designer.

The TIBCO Designer Startup window appears.

2. Choose New Empty Project.

The TIBCO Designer main window appears, with the Save Project dialog on top.

3. In the Save Project dialog, click the Server-based Project tab.

4. Click the New Project button.

5. Specify the name and password of the administrative user for the domain.

The administrative user for the domain was specified during installation.

6. Specify the name of the project, for example, TestFilePoller, then click the Create button.

You are returned to the Save Project dialog.

7. Click the OK button.

8. The Backup dialog appears. Backups allow you to restore your project to a previous state. For the purpose of this tutorial, backups are not needed, so click the No button.

TIBCO BusinessWorks QuickStart

Page 14: TIBCO Business Works - Quick Start - Nov 2002

6 | TIBCO BusinessWorks QuickStart

You are now ready to create a process definition using TIBCO Designer. The next section gives an overview of TIBCO Designer. If you would like to start process design right away, skip the overview and start with Creating the FileTest Process on page 10.

See Also For some introductory information on TIBCO Designer, see TIBCO Designer Main Window on page 7. The TIBCO Designer User’s Guide, available from the Help > Designer Help menu, gives additional information, including an introduction to the display preferences.

TIBCO BusinessWorks QuickStart

Page 15: TIBCO Business Works - Quick Start - Nov 2002

TIBCO Designer Main Window | 7

TIBCO Designer Main Window

The TIBCO Designer main window has these components:

• Menu bar and menus.

• Toolbar icons.

• Four panels, which are (starting in the top left corner and continuing clockwise):

— Project tree panel

— Design panel

— Configuration panel

— Palette panel

The following sections explain each panel.

Design panel

Configurationpanel

Menu bar

Toolbar

Palette panel

Project treepanel

TIBCO BusinessWorks QuickStart

Page 16: TIBCO Business Works - Quick Start - Nov 2002

8 | TIBCO BusinessWorks QuickStart

Projects

A project consists of objects that contain the functionality needed for your enterprise integration. This includes services (producers and consumers of information), any business logic that may be applied to that information, and deployment information.

Each TIBCO Designer window contains one and only one project, which is represented as the top-level folder in the window.

The ProcessNewComputer project, shown below in the project tree panel, includes two process definitions, a PeopleSoft adapter (PSoft_ReqRep), a Siebel adapter (SBLAccount), and several other resources.

Resources

Resources are the components of a project. A TIBCO Designer resource corresponds to an object in a TIBCO application, such an FTP Put activity, a process definition, or a specific adapter instance.

i

Resources can be complex and contain other resources, much like a folder can contain other folders on your computer’s file system. For example, an adapter instance may contain multiple folders with multiple publisher or subscriber resources. A process definition contains multiple activities.

Resources can also be simple. In the illustration above, PSoft_OrderEntry is a simple resource.

Project

Resourcesin project tree

Resourcesin design panel

TIBCO BusinessWorks QuickStart

Page 17: TIBCO Business Works - Quick Start - Nov 2002

TIBCO Designer Main Window | 9

Activities

Resources used in process design are called activities. You can create a process flow linking activities with transitions. You can have multiple transitions from one activity to others, and each transition can be conditional.

Palettes

A palette provides access to resources. You drag and drop resources from the palette in the palette panel into the design panel to add them to your project.

TIBCO Designer contains a number of native palettes. In addition, each TIBCO application you install adds one or more palettes to TIBCO BusinessWorks during installation.

Which palette is displayed depends on the resource selected in the project tree and on your preferences.

TIBCO BusinessWorks QuickStart

Page 18: TIBCO Business Works - Quick Start - Nov 2002

10 | TIBCO BusinessWorks QuickStart

Creating the FileTest Process

This section guides you through creating a simple process definition. The process, which will be named FileTest, polls a directory for a specified file and writes a new file to the same directory each time the file changes. The new file’s name includes the type of change that occurred to the original file (create, modify, or remove). The new file’s content is the same as the polled file’s content, but the time of the change in the file is appended to the end of the file. The time of the file change is represented as the number of milliseconds since January 1, 1970.

The tutorial uses a variable file name to illustrate how to use the TIBCO BusinessWorks mapping capabilities.

To create the FileTest process, follow these steps:

1. In TIBCO Designer, select the project name (e.g. TestFilePoller) in the project tree panel.

2. In the palette panel, select the Process palette.

If no palettes are in the palette panel, click the Switch Palette Mode icon to display the palettes.

3. From the palette panel, drag a process definition into the design panel.

4. In the configuration panel, type the name FileTest in the Name field to rename the process. Then click Apply.

5. Save your project by choosing Project > Save from the menu.

See Also For introductory information about processes, see TIBCO BusinessWorks Concepts. For detailed information about processes, see the TIBCO BusinessWorks Process Design Guide.

To add activities to the process, follow these steps:

1. Select the FileTest process in the project tree.

The Start and End activities should be displayed in the design panel.

Before you start to design the process, create a directory. Then create text file with some simple content (for example, "The cherry blossoms are beautiful") in the directory . The file will be needed by the File Poller activity. This example uses the directory c:\tibco\test and the file PolledFile.txt.

TIBCO BusinessWorks QuickStart

Page 19: TIBCO Business Works - Quick Start - Nov 2002

Creating the FileTest Process | 11

2. Find the File palette in the palette panel and select it.

3. Drag a File Poller activity into the design panel (but not on top of the Start activity).

The Start activity is replaced by the File Poller activity.

4. With the File Poller still selected, enter the following values in the configuration panel:

a. Name the File Poller TestFilePoller.

b. Click the Browse button to the right of the File Name field and select the file you want to poll. Use the Select File dialog to locate the directory and file you created.

c. Leave the Polling Interval and other fields as they are, including the Content as field, which defaults to text.

d. Click the Apply button.

5. Drag a Create File activity into the design panel and place it to the right of the TestFilePoller.

6. Name the Create File activity CreateTestFile, and click the Overwrite check box, then click the Apply button.

If the File palette is not one of the available palettes, choose Edit > Preferences > Palettes and use the preferences dialog to specify that it should be visible.

TIBCO BusinessWorks QuickStart

Page 20: TIBCO Business Works - Quick Start - Nov 2002

12 | TIBCO BusinessWorks QuickStart

7. Drag a Write File activity into the design panel and place it to the right of the CreateTestFile activity (before the End activity).

8. Name the Write File activity WriteToTestFile, then click the Apply button.

9. In the toolbar, select the Transition icon .

10. Select the TestFilePoller and drag a transition to the CreateTestFile activity. Connect the CreateTestFile and WriteToTestFile and the WriteToTestFile and End activities in the same manner.

The result should appear as follows:

The process now includes appropriately connected activities. However, no information about the name and content of the files is included. To set those, you use the TIBCO Designer mapping facilities.

The goal in this exercise is to create a file that has the name File<changeType>.txt, where <changeType> is the type of change that occurred to the original file (create, modify, or remove). The contents of the changed file is then written to the new file, and the time the change in the file occurred is appended to the end of the contents. For example, if the text was "The cherry blossoms are beautiful" it will be changed to "The cherry blossoms are beautiful 1017163931036"

To map the data flow between activities, follow these steps:

1. Choose the Select icon in the toolbar, if it is not already selected.

2. Select the CreateTestFile activity and choose the Input tab in the configuration panel.

TIBCO BusinessWorks QuickStart

Page 21: TIBCO Business Works - Quick Start - Nov 2002

Creating the FileTest Process | 13

Each activity’s output is available to subsequent activities in the process definition. You can use data from previous activities to specify the input of the current activity. For example, you can use the content of the original text file as the content of the new text file.

The left pane of the Input tab contains a list of data from all activities preceding the current activity in the process diagram. Each activity’s name appears with a dollar sign ($) in front of it to indicate that this is a process variable.

The right pane of the Input tab lists the current activity’s input. Input fields in red indicate an error in the data specified for the field. In this case, the fileName field requires an input value. Since no value has been suppled yet, the field is displayed in red.

3. Click the plus (+) sign next to the process variable $TestFilePoller in the Process Data pane to expand the list of data available as output from the TestFilePoller activity.

4. In the right pane, select the fileName field in the Activity Input pane, then click the XPath Formula Builder (pencil) icon.

5. In the XPath Formula Builder that appears, follow these steps:

a. Select the Functions tab, open the String folder, select concat, and drag it into the XPath Formula panel.

The display in the right pane changes to display a concat XPath expression.

b. Replace << string1 >> with "c:\tibco\test\File" (include the quotes).

c. In the left pane, select the Data tab, choose the $TestFilePoller/action item and drag it over << string2 >>. A red box appears over << string2 >> indicating you can release the data over this item and the correct XPath expression will appear.

d. Add a comma after $TestFilePoller/action, then add the string ".txt" (include the quotes).

The expression should look like the following:

concat("c:\tibco\test\File", $TestFilePoller/action, ".txt")

6. Click the OK button, then click the Apply button.

7. Select the WriteToTestFile activity, then click the Input tab in the configuration panel.

TIBCO BusinessWorks QuickStart

Page 22: TIBCO Business Works - Quick Start - Nov 2002

14 | TIBCO BusinessWorks QuickStart

8. Map the data as follows:

a. Select $CreateTestFile/fileInfo/fullName and drag it to the fileName item in the Activity Input pane.

You do not need to use the XPath editor to map this item because you do not need to use XPath functions. The content of the field is exactly the same as the value of the $CreateTestFile/fileInfo/fullName process variable.

b. In the right pane, select the textContent field and click the XPath Formula Builder icon.

c. In the XPath Formula Builder, drag a concat function into the XPath formula panel.

d. Add " ", between <<string1>> and <<string2>> so that there is a space between the two strings in the concat function.

e. Click the Data tab and drag $TestFilePoller/fileContent/textContent over <<string1>>.

f. Drag $TestFilePoller/timeOccurred over <<string2>>.

The formula should look like this:

concat($FileTestPoller/fileContent/textContent," ",$FileTestPoller/timeOccurred)

g. Click the OK button.

9. Click the Apply button, then choose Project > Save to save your project.

You are now ready to test the project.

TIBCO BusinessWorks QuickStart

Page 23: TIBCO Business Works - Quick Start - Nov 2002

Testing the FileTest Process | 15

Testing the FileTest Process

You can test the FileTest process directly from TIBCO Designer. This allows you to make sure the process works correctly before you deploy it. Follow these steps:

1. Click the Set Breakpoints icon .

2. In the window that appears, choose Select All, then click OK.

Breakpoints allow you to step through the process. Stepping helps you see what happens when each activity executes.

3. In the TIBCO Designer toolbar, click the Display Tester Window icon

TIBCO Designer prompts for confirmation that it can save the project.

4. Click Continue.

TIBCO Designer displays the Tester window.

5. Click the Load Process and Start Testing icon.

6. In the process selection window that appears, select the TestFilePoller process, then click Start.

The process is now in Test mode.

7. Make a change to the polled file to start the process.

8. Once the TestFilePoller activity is highlighted (indicating a process has started), click the Step icon to step through the process.

TIBCO BusinessWorks creates an output file named Filecreate.txt after you have stepped into the WriteToTest activity and writes the appropriate text to the file after you have stepped to End.

The text should be the text of PolledFile.txt and, in a new line, the time, in milliseconds, since January 1, 1970.

You can click on each activity in the process definition as you step through it. If you click on the Input tab for the activity, you will see the actual process data as the process executes in the right-most panel.

9. Next, open PolledFile.txt, make a change to it, and save it.

10. Step through the process once more.

TIBCO BusinessWorks creates a file Filemodify.txt with the new content.

11. Check that the contents of the file is the same as that of the revised polled file, with the time added to it.

TIBCO BusinessWorks QuickStart

Page 24: TIBCO Business Works - Quick Start - Nov 2002

16 | TIBCO BusinessWorks QuickStart

12. Click the Stop Test Mode icon to return to design mode. In design mode, you can now prepare your deployment configuration.

See also For more information on using test mode, see the TIBCO BusinessWorks Process Design Guide.

TIBCO BusinessWorks QuickStart

Page 25: TIBCO Business Works - Quick Start - Nov 2002

Creating a Deployment Configuration | 17

Creating a Deployment Configuration

To deploy the example, you must create a deployment configuration. The deployment configuration allows you to run a process engine on the machine that automatically runs the process definition. For more complex projects, you can specify a more complex deployment configuration that assigns several processes to different process engines, adapter services to different adapters, adds different alerts and recovery options, etc.

See Also For more information on creating a deployment configuration, see the TIBCO BusinessWorks Administrator’s Guide.

To prepare a deployment configuration, follow these steps:

1. In TIBCO Designer, select the TestFilePoller project in the project tree.

2. In the palette panel, find the Deployment Configuration icon in the Deployment palette and drag it into the design panel.

3. In the project tree, select the Deployment Configuration. Drag a Machine resource from the palette panel to the design panel.

TIBCO Designer searches the TIBCO Administration Domain for machines (this may take a few seconds) and makes them available from the configuration panel.

4. Select the Machine resource in the project tree.

5. In the Configuration tab for the Machine resource, click the drop-down menu and choose the machine on which you are running TIBCO BusinessWorks, then click the Apply button.

The Configuration tab is updated to show machine characteristics for the selected machine.

6. Select the machine in the project tree, then drag a Process Engine resource from the palette panel into the design panel.

7. In the project tree, select the Process Engine resource, then, in the resource’s Configuration tab, give the process engine a name (for example, FileTestProcessEngine).

8. Specify the administrator’s username and password in the TIBCO Username and TIBCO Password fields. Then click the Apply button.

You do not have to perform any other configuration of the process engine, though you can, for example, set up two engines to run as a fault tolerant group from here. See the TIBCO BusinessWorks Palette Reference.

TIBCO BusinessWorks QuickStart

Page 26: TIBCO Business Works - Quick Start - Nov 2002

18 | TIBCO BusinessWorks QuickStart

To complete the configuration, you can add one simple recovery activity.

1. In the project tree, select the process engine, then double-click Any Failure in the design panel.

2. Select the Alert resource displayed in the design panel.

By default, an alert is sent on any failure.

3. In the Configuration tab, change this Alert’s message to FilePoller Process Engine failed.

You can, for example, also specify that the process should be restarted on first failure. Follow these steps:

4. In the project tree, select the process engine and drag a Component Failure Event folder into the design panel.

5. In the Configuration tab, choose First Failure in the configuration panel and click the Apply button.

6. Select First Failure in the project tree, then drag a Restart icon from the palette panel into the design panel.

7. Save your project.

You are now ready to deploy and run your tested project using the specified deployment configuration.

See Also For additional information on creating a deployment configuration, see the TIBCO BusinessWorks Administrator’s Guide.

TIBCO BusinessWorks QuickStart

Page 27: TIBCO Business Works - Quick Start - Nov 2002

Deploying the Project | 19

Deploying the Project

When you deploy a project, TIBCO BusinessWorks creates the appropriate deployment scripts and properties files and sends them to the appropriate machines in your domain. After a project has been deployed, it becomes visible from TIBCO Administrator and can be started, stopped, and monitored using TIBCO Administrator.

To deploy the TestFilePoller project, follow these steps:

1. In the project tree, select the Deployment Configuration.

2. Click the Deploy icon in the toolbar.

3. A dialog appears that asks you to save the project. Click the Continue button.

4. In the deployment dialog, click the Deploy button.

TIBCO BusinessWorks deploys the project using the deployment information you specified.

5. When the status of the process engine becomes Deployed, click the Close button.

The process engine for the project is now ready to be started from TIBCO Administrator.

TIBCO BusinessWorks QuickStart

Page 28: TIBCO Business Works - Quick Start - Nov 2002

20 | TIBCO BusinessWorks QuickStart

Starting the Process Engine from TIBCO Administrator

This section explains how to start the process engine for the example project.

To start and test the process engine, follow these steps:

1. If your default browser is Microsoft Internet Explorer or Netscape Navigator 6.0 or later, choose Start > Programs>Tibco>TIBCO BusinessWorks 2.0> Administrator.

If an earlier versions of Netscape Navigator is the default on your machine, open Internet Explorer and connect to this URL:

http://machine:8080/administrator/servlet/tibco_administrator

Where machine is the name of machine on which the TIBCO Administration Server has been installed. If this is the same machine you are currently on, you can use localhost as the machine name.

2. Log into the administration sever as the administration user. This user was specified when TIBCO BusinessWorks was installed.

3. In the left pane of TIBCO Administrator, click the + next to Deployments, then select the TestFilePoller project.

4. Click Components.

The process engine for your project is, by default, Stopped. The name you gave the process engine during deployment configuration is visible.

5. Click the empty check box to the left of the process engine, then slick the Start Selected button, which has become highlighted.

The Running Status changes to Starting up and, after a short delay, to Running.

You can now start run-time testing of the process.

TIBCO BusinessWorks QuickStart

Page 29: TIBCO Business Works - Quick Start - Nov 2002

Run-Time Monitoring Using TIBCO Administrator | 21

Run-Time Monitoring Using TIBCO Administrator

This section explains how to monitor the process using TIBCO Administrator. You will change the polled file twice, then look at the throughput information. The next section explains how to use tracing options.

To monitor your project, follow these steps:

1. Go to the directory that contains the file you are monitoring.

You will notice one newly created file (Filecreate.txt) is already there. It contains a file Filecreate.txt. From the standpoint of the business process, the file was just created.

2. Open PolledFile.txt, make a small change to the text, and save the file.

A second file, Filemodify.txt, is created (For a later test, you can also delete the file and re-create it to see creation of Fileremove.txt.)

3. Go to TIBCO Administrator and select Deployments> FilePoller > Components in the left panel. Then select FileTestProcessEngine, and click the TestFilePoller process.

4. For a different view of the process that just executed, select Deployments> TestFilePoller > BusinessProcesses in the left panel. Click the + next to the process engine, then select the process instance.

TIBCO BusinessWorks QuickStart

Page 30: TIBCO Business Works - Quick Start - Nov 2002

22 | TIBCO BusinessWorks QuickStart

The display shows each activity and how often it has been executed.

See Also The TIBCO Administrator User’s Guide gives detailed information about the different tasks you can perform to monitor and manage users, domains, and activities.

TIBCO BusinessWorks QuickStart

Page 31: TIBCO Business Works - Quick Start - Nov 2002

Setting Tracing Options Using TIBCO Administrator | 23

Setting Tracing Options Using TIBCO Administrator

The TIBCO Administrator interface allows you to monitor your deployment in various ways. This section steps you through setting up traces.

To use traces for monitoring the process, follow these steps

1. Choose Deployments > TestFilePoller > Components, then select the process engine.

2. Click the Tracing tab.

3. With the default file selected, click Search. The display updates to show the traceable events.

4. For a more detailed trace, click the Configure Tracing button, then select both All Activities and All Starters, then click OK.

5. Change and save PolledFile.txt again to trigger the process, then return to TIBCO Administrator.

This time, a log entry is recorded for each starter and each other activity.

6. Click the Search button again.

TIBCO BusinessWorks QuickStart

Page 32: TIBCO Business Works - Quick Start - Nov 2002

24 | TIBCO BusinessWorks QuickStart

TIBCO Administrator displays a trace showing the activities.

7. If desired, you can filter the trace using the Add Search Condition button. You can also explore the TIBCO Administrator User Management facility. See TIBCO BusinessWorks Administrator’s Guide for more information on each of these tasks.

TIBCO BusinessWorks QuickStart