TIB_BW_6.6.1_getting_started
TIB_BW_6.6.1_getting_started
Getting Started
Software Release 6.6.1
May 2020
2
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 LICENSE FILE)
OR IF THERE IS NO SUCH SOFTWARE LICENSE AGREEMENT OR CLICKWRAP END USER
LICENSE AGREEMENT, THE LICENSE(S) LOCATED IN THE “LICENSE” FILE(S) OF THE
SOFTWARE. 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.
ANY SOFTWARE ITEM IDENTIFIED AS THIRD PARTY LIBRARY IS AVAILABLE UNDER
SEPARATE SOFTWARE LICENSE TERMS AND IS NOT PART OF A TIBCO PRODUCT. AS SUCH,
THESE SOFTWARE ITEMS ARE NOT COVERED BY THE TERMS OF YOUR AGREEMENT WITH
TIBCO, INCLUDING ANY TERMS CONCERNING SUPPORT, MAINTENANCE, WARRANTIES,
AND INDEMNITIES. DOWNLOAD AND USE OF THESE ITEMS IS SOLELY AT YOUR OWN
DISCRETION AND SUBJECT TO THE LICENSE TERMS APPLICABLE TO THEM. BY PROCEEDING
TO DOWNLOAD, INSTALL OR USE ANY OF THESE ITEMS, YOU ACKNOWLEDGE THE
FOREGOING DISTINCTIONS BETWEEN THESE ITEMS AND TIBCO PRODUCTS.
This document 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.
TIBCO, the TIBCO logo, the TIBCO O logo, TIBCO ActiveMatrix BusinessWorks, TIBCO Rendezvous,
TIBCO Enterprise Message Service, TIBCO Business Studio for BusinessWorks, TIBCO Enterprise
Administrator, TIBCO ActiveSpaces, TIBCO Runtime Agent, and TIBCO Designer are either registered
trademarks or trademarks of TIBCO Software Inc. in the United States and/or other countries.
Java and all Java based trademarks and logos are trademarks or registered trademarks of Oracle and/or
its affiliates.
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 software may be available on multiple operating systems. However, not all operating system
platforms for a specific software version are released at the same time. Please see the readme.txt file for
the availability of this software version on a specific operating system platform.
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.
THE CONTENTS OF THIS DOCUMENT MAY BE MODIFIED AND/OR QUALIFIED, DIRECTLY OR
INDIRECTLY, BY OTHER DOCUMENTATION WHICH ACCOMPANIES THIS SOFTWARE,
INCLUDING BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES.
This and other products of TIBCO Software Inc. may be covered by registered patents. Please refer to
TIBCO's Virtual Patent Marking document (https://www.tibco.com/patents) for details.
Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
TIBCO Documentation and Support Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
Changing Help Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
About the Getting Started Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
TIBCO Business Studio™ for BusinessWorks™ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Application Development . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Web Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Shared Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Cheat Sheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
REST Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
REST Documenter and Tester . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Creating REST Services in the Rest Service Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Discovering API Models from TIBCO Business Studio™ for BusinessWorks™ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Importing an API Model into your Workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Creating an XML Schema for a Swagger File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Consuming a REST Endpoint in TIBCO Business Studio for BusinessWorks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Synchronizing the Imported REST API Models in TIBCO Business Studio™ for BusinessWorks™ . . . . . . . . . . . . . . . . . . 19
Archive Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Run Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Figures
REST Service Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13
Swagger UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
REST Service Wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15
Debug Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Console View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
Stop Icon in Debug Perspective . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Console View . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Utils Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Net Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Documentation for TIBCO products is available on the TIBCO Product Documentation website, mainly
in HTML and PDF formats.
The TIBCO Product Documentation website is updated frequently and is more current than any other
documentation included with the product. To access the latest documentation, visit https://
docs.tibco.com.
Product-Specific Documentation
Documentation for TIBCO products is not bundled with the software. Instead, it is available on the
TIBCO Documentation site.
Access the following TIBCO ActiveMatrix BusinessWorks™ guides on the TIBCO Documentation site:
● Concepts
● Installation
● Getting Started
● Application Development
● Administration
● Bindings and Palettes Reference
● Samples
● Error Codes
● Migration
● Performance Benchmarking and Tuning
● REST Reference Guide
● Refactoring Best Practices
TIBCO Community is the official channel for TIBCO customers, partners, and employee subject matter
experts to share and access their collective experience. TIBCO Community offers access to Q&A forums,
product wikis, and best practices. It also offers access to extensions, adapters, solution accelerators, and
tools that extend and enable customers to gain full value from TIBCO products. In addition, users can
submit and vote on feature requests from within the TIBCO Ideas Portal. For a free registration, go to
https://community.tibco.com.
Prerequisites
Before changing the help preferences to access documentation locally or from an internal web server,
download the documentation.
1. Go to https://docs.tibco.com/
2. In the Search field, enter TIBCO ActiveMatrix BusinessWorks™ and press Enter.
3. Select the TIBCO ActiveMatrix BusinessWorks™ product from the list. This opens the product
documentation page for the latest version.
4. Click Download All.
5. A compressed .zip file containing the latest documentation is downloaded to your web browser's
default download location.
6. Copy the .zip file to a local directory or to an internal web server and unzip the file.
To point to a custom location:
Procedure
● On Windows OS: In TIBCO Business Studio for BusinessWorks, click Window > Preferences
● On macOS: In TIBCO Business Studio for BusinessWorks, click TIBCO Business Studio >
Preferences.
2. In the Preferences dialog box, click BusinessWorks > Help.
3. Click Custom Location, and then browse to the html directory in the folder where you extracted the
documentation or provide the URL to the html directory on your internal web server.
4. Click Apply, and then click OK.
● File Poller Module Tutorial: Guides you through creating a simple process and running it.
● REST Service Tutorial: Walks you through the steps to build and test a simple REST Service using
TIBCO Business Studio™ for BusinessWorks™ and the Swagger UI.
● REST Reference Tutorial: Shows you how to create a simple REST Invoke to an existing REST
Service defined by a Swagger specification.
● Administration Tutorial: Provides information about the administration framework and deploying
sample applications using the provided scripts.
The Orientation section introduces you to the TIBCO Business Studio for BusinessWorks development
environment. Before you continue, read the TIBCO ActiveMatrix BusinessWorks™ Concepts guide to
familiarize yourself with the ActiveMatrix BusinessWorks™ concepts and terminology.
Orientation
TIBCO ActiveMatrix BusinessWorks™ is an integration product suite for enterprise, web, and mobile
applications.
TIBCO Business Studio for BusinessWorks allows you to create services and integrate applications
using a visual, model-driven development environment, and then deploy them in the ActiveMatrix
BusinessWorks™ runtime environment .
This product uses Eclipse-based graphical user interface (GUI) provided by TIBCO Business Studio for
BusinessWorks to define business processes and generate deployable artifacts in the form of archive
files. These deployable artifacts can be:
● On Unix: Run the TIBCO Business Studio for BusinessWorks executable located in the
$TIBCO_HOME/studio/<version>/eclipse/ directory.
● On Windows: Click Start > All Programs > TIBCO > TIBCO_HOME > TIBCO Business Studio
<version_number> > Studio for Designers
In the Workspace Launcher dialog, accept the default workspace or browse to create a new workspace,
and click OK.
When TIBCO Business Studio for BusinessWorks starts, the default development environment, a
workbench, is displayed.
For more information about samples in TIBCO Business Studio for BusinessWorks, see the section
Accessing Samples in the TIBCO ActiveMatrix BusinessWorks™ Samples guide.
Application Development
Applications solve integration problems of varying complexity. Using TIBCO Business Studio™ for
BusinessWorks™, applications can be developed using an application-oriented integration style or a
service-oriented integration style. How you design your application's integration style depends on the
following factors:
● Speed of integration
● Data abstraction
● Richness of operation primitives
● Typical endpoints
For more information about an application's integration style and other application design
considerations, see "Application Design Considerations" in theTIBCO ActiveMatrix BusinessWorks™
Application Development guide.
Processes allow you to implement business logic that can obtain and manage the flow of information in
an enterprise between a source and different destinations. In process-driven design, the business
processes or integration flows are first realized and captured. For more information about process
design, see "Process Design Considerations" in theTIBCO ActiveMatrix BusinessWorks™ Application
Development guide.
Processes developed in TIBCO Business Studio for BusinessWorks are saved in an application module.
Application modules are equivalent to projects and are saved to folders on the disk. The TIBCO
Business Studio for BusinessWorks workspace contains one or more application modules.
Processes are designed in the Process Editor. Activities and shared resources help you rapidly design
business processes. An activity is the individual unit of work in a process. There are multiple ways to
add an activity to a process: from the right-click menu on the Process Editor, from the palettes, and
from the File Explorer or Project Explorer. To add an activity from the palette, select it and drop it on
the Process Editor.
Implemented services are shown as chevrons on the left side of the Process Editor. References that are
invoked are shown on the right side of the Process Editor. For a simple process, services and references
are optional.
Web Services
Web services are application components that communicate using open standard protocols. You can
develop SOAP-based web services using the Generate Concrete WSDL Wizard. The wizard generates a
WSDL file and the appropriate response activities. You can develop REST-based web services using the
REST Service Wizard in TIBCO ActiveMatrix BusinessWorks™.
Select a WSDL file in the Project Explorer and drop it on the Process Editor to implement a web
service. Dropping the WSDL file displays a menu for creating services or implementing operations.
Response activities are automatically generated.
To create a REST service, select a path under the .json file in the Service Descriptors folder and drop it
on the Process Editor to implement a web service. When you drop the path, it displays a menu with an
option to create a service or a reference.
Shared Resources
Shared resources are configurations that are shared among activities. These are resources such as
database and HTTP connections, and connections to other servers. Resources are added to special
folders in the Project Explorer. The following image shows these folder in the Project Explorer.
The following types of folders for shared resources can exist in a project.
Cheat Sheet
A quick reference help is available in the form of cheat sheets for few common tasks in the TIBCO
Business Studio for BusinessWorks.
Open a cheat sheet using any one of the following :
● Click Help > Welcome. The Welcome page opens. Click Open Cheat Sheets.
Or
● Click Help > Cheat Sheet.
Cheat sheets are available for the following tasks:
REST Support
The REST Service wizard is used to build RESTful services.
When you create a REST service, make sure to edit the Default Host field in the HTTP Connection
Resource to reflect the actual host name. By default, the Default Host field is set to localhost.
REST Service Wizard
This Swagger based interface provides a convenient and quick way to:
● View REST endpoints and operations implemented by the REST resource service.
● Examine the inputs and outputs for each operation in JSON format.
● Enable Input fields to specify JSON or XML input for each operation.
● Invoke an operation and receive a live response for the input supplied.
When you create a REST service, make sure to update the Default Host field in the HTTP Connection
Resource to reflect the actual host name. By default, the Default Host field is set to localhost.
Follow these steps to create a REST service using the REST Service Wizard:
Procedure
1. Right-click on a process in the Project Explorer and select New > BusinessWorks REST Resource.
The REST Service Wizard opens.
Prerequisites
For the API Explorer to discover the APIs residing on a remote server, the remote server must be up
and running.
You can set up the locations to which you want the API Explorer to connect and look for the APIs. To
do so, follow the steps below.
Procedure
● API Presentation - specifies how the APIs appear in the API Explorer
Flat - displays the APIs as a flat list with each API's version number displayed next to its name
in parenthesis. If there are multiple versions of the same API, each version is shown as a
separate API, hence multiple APIs with the same name but different version numbers.
Hierarchical - displays every API as a hierarchy of API name label with version number folder
under it and the actual API under the version folder. If there are multiple versions for an API,
each version is listed in its own separate folder under the API name label.
Latest Version - displays only the latest version of the API, even though there are multiple
versions available.
● Group by API registry - groups the APIs according to the registry from which they were
discovered
● API registry configurations - displays the list of API registries that are currently configured in
your TIBCO Business Studio for BusinessWorks installation.
Select the API registry check boxes to display the APIs.
You can edit an existing registry by clicking the Edit button, delete the registry configuration by
clicking Remove, or changing the order in which the registries show up in the API Explorer by
using the Up and Down button. These button get activated when you click on an API registry name.
3. Click New to add a new registry.
4. In the Create new API Registry client configuration dialog do the following:
a) Enter a name for the API registry that you are mapping to in the Name text box.
b) Select the Local radio button to map a location where the APIs are stored on your local machine's
hard drive and navigate to the location using the Browse button. Alternatively, select the Remote
radio button if you want to map to a remote server that contains the APIs and enter the URL for
the server in the URL text box.
5. Click Finish.
You should now see the APIs displayed in the API Explorer in the format that you specified in the
Settings dialog box. Expanding an API show you its version, the resource path, and the operations
to perform on that resource.
Organizations can have multiple owners, and a list of owners is displayed in the Edit API
Registry client configuration page.
The API Explorer view has the following quick-access buttons that you can use to format the way
the APIs are listed:
● Refresh
● Expand All
● Collapse All
● API Presentation
● API Registries. Selecting a registry from this drop-down list toggles between displaying
and hiding the registry in the API Explorer.
Use the search filter that appears at the bottom of the API Explorer view to search for API names
that match the string that you enter in the Filter text box. You can search by typing in the version
number, the full API name, or a full word within an API name. Wildcards are not supported. The
search is case insensitive.
Procedure
1. Right-click on one or more API names in the API Explorer and select Import.
The Import API dialog opens.
Every API you selected in the API Explorer is listed in this dialog. If an API has multiple versions,
all versions are listed. By default, all APIs listed here are selected. You can deselect APIs that you do
not want to import by clearing its check box.
2. Select the appropriate action and click Next.
Option Description
Import to project Select the radio button to import the API into an existing project and
browse to the project using the Browse button.
Create a new project and To create a new project and import the API into that project select the
import API to the new radio button.
project
API list to import Select the API or the appropriate version of the API when there are
multiple versions of the API available.
Prerequisites
A Swagger 2.0 or a Swagger 3.0 file must exist in the Service Descriptors folder of the project. Make
sure to import the Swagger file into the Service Descriptors folder before you follow these steps:
Procedure
1. Drop the Swagger file on the right side of the canvas to create a REST service binding. This action
generates an XML schema for the Swagger file under the Schemas folder. The XML schema file has
the same name as the Swagger file.
Or
2. Right-click the Swagger file in the Service Descriptors folder and select Refactor > Generate XSD
Schema.
● To see which XML schema is related to the Swagger file, right-click the Swagger file and select
Refactor > Open XSD Schema.
● If you have multiple Swagger files all of which contain a definition for the same object, the
definition for the object in all the Swagger files must be identical.
● If you have multiple Swagger files with one file (a master file) containing a super set of
definitions contained in the other files, generate an XSD file from the master Swagger file that
contains the super set, and create links to the other files in the master Swagger file. If you create
a link to the super set file in one of the subset files and then create an XSD from the subset file,
then the XSD contains only those elements that are common to both files. It does not contain
elements for definitions that exist only in the super set file.
You cannot edit the REST reference binding configuration for APIs that are imported from a source
external to TIBCO Business Studio for BusinessWorks.
Prerequisites
Swagger API documents must be imported into the project's Service Descriptors folder. This gives you
the ability to expand and collapse endpoints, operations, parameters and response codes in the Project
Explorer.
To consume a REST API that exists in the Service Descriptors of the project, do the following:
Procedure
1. Expand the Swagger file in the Service Descriptors special folder to view the endpoints, operations,
parameters, and response codes.
2. Drag an endpoint on the right side of the canvas to create a REST reference binding.
This creates a cloud shaped icon with a right facing arrow. The cloud is an indication that it is a
REST reference whereas the arrow within the cloud indicates that it is a binding. Since the binding
is within a cloud, it is an indication that it is a REST binding. You cannot convert a REST binding to
a SOAP binding or vice versa.
When you create a REST reference for the service, make sure to edit the Default Host field
in the HTTP Client Resource to reflect the actual host name. By default, the Default Host
field is set to localhost.
3. Drag and drop an operation from the REST reference binding on to the canvas.
This creates an Invoke activity which is pre-configured to invoke the operation. It also creates an
HTTP Client Shared Resource with the host name and port number. The configuration for these
entities is copied from the Swagger document from which you created the reference binding. The
reference consists of the name of the API as well as the operations it supports.
When invoking a POST or PUT method, you must provide the request string in the Input tab. To do
so, click the column next to item under postRequest in XPath Expression and provide the request
string in the dropdown box.
4. Test the configured process using the TIBCO Business Studio for BusinessWorks debugger.
Synchronizing the Imported REST API Models in TIBCO Business Studio™ for
BusinessWorks™
If a REST service developer has made changes to the service API after creating the service, the changes
needs to be propagated to all the places where the service is used. You can check for updates to a
Swagger file that has been imported into TIBCO Business Studio for BusinessWorks. The icon to the left
of the Swagger file in the Project Explorer in the TIBCO Business Studio for BusinessWorks displays an
indication that the file has been modified in its original location and the local copy of the file is not in
synchronization with it source.
You can check for differences between the original Swagger file and its copy that was created when
importing it into the TIBCO Business Studio for BusinessWorks. You can also compare the differences
between the two and update your local copy if need be. To do so, follow these steps:
Procedure
1. Right-click the Swagger file under Service Descriptors in the Project Explorer.
2. Select Remote Interface.
The Check for Differences menu option checks for differences between the imported copy and its
original.
The Compare Differences menu option first checks for differences between the imported copy of
the Swagger file and its original. If there is a difference, the file appears in the Synchronize tab and
if you double-click it there it displays the two files side by side with the differences highlighted.
The Update Local Copy menu item updates the copy of the file in your workspace to match its
original. It also regenerates the schema.
No changes are performed for processes that have already been created.
Archive Files
After completing an application module, you must define an application to build a deployment archive
file. An application defines all the processes, properties, and resources that must be included in the
archive file. By default, all processes are included.
To create an archive, choose one of the following:
● Right-click the project in the Project Explorer and choose Export > Studio Projects to Archive. The
Export Project dialog is displayed.
● Drag the project from the Project Explorer and drop it on a folder in the File Explorer.
In both scenarios, and archive file is created with all required processes, properties, and resources. In
the first scenario, you can name the archive file, select the format, and select the resources to include. In
the second scenario, the archive is created for you in the format appropriate for your operating
environment. All required elements are included.
Debugger
The TIBCO Business Studio for BusinessWorks debugger is used to test processes during the process
development stage. By default, the debugger supports all the processes and subprocesses of an
application module, shared module and nested shared module. Starting the debugger brings up the
Debug perspective. This perspective can be used to set breakpoints, step through processes, examine
job variables, and activity input/output at each step.
Debug Perspective
The Console view displays the messages and errors returned by the runtime.
Console View
Start the debugger with the Run > Debug command. To stop the debugger, press the Stop icon on the
Debug perspective toolbar:
Run Time
You can run applications in TIBCO Business Studio™ for BusinessWorks™ and test them in a runtime
environment, which consists of a domain, AppSpace, and an AppNode on your local machine.
These runtime entities were created when you installed TIBCO ActiveMatrix BusinessWorks™. For
more information about runtime entities, see the TIBCO ActiveMatrix BusinessWorks™ Concepts guide.
To run an application in TIBCO Business Studio for BusinessWorks, choose the Run > Run command.
(Applications can also be run with the Run > Run Configurations command. This option allows you to
manage and launch run configurations.) The Run command opens the Console view where progress
messages and errors are displayed.
Console View
Click the Businessworks Jobs view in the top left to see the jobs created for the process. To stop the
current job, click the Stop button on the Console view toolbar.
From the Console view, you can use OSGi commands to monitor the running AppNode and gather
metrics about your application. For information about OSGi commands, press Enter in the Console
view to display the <>@BWEclipseAppNode> prompt. Type help to get a list of commands.
The scope is indicated along with the command. Commands with the scope bw return information
about the running application. Type a command name followed by -h for information about the
command. For example, the command help bw:dsr returns:
dsr - Diagnoses Shared Resource issues
scope: bw
parameters:
String Partial or full name of a Shared Resource. Case is ignored.
Applications can also be run from the administration framework using the bwadmin command line
utility.
Deployment
Applications can be deployed from TIBCO Business Studio™ for BusinessWorks™ using either the
Deployment Wizard or the Deployment Server.
The Deployment Wizard is available from the right-click menu once an archive file has been created.
You need to provide the name and port for the network to which you want to deploy to, as well as the
domain and AppSpace for deployment.
The Deployment Server is a pre-built deployment environment that consists of domains, AppSpaces,
and AppNodes. Archive files have been uploaded to this server and applications are ready for
deployment.
Network configuration for either a local network or the deployment server is available from the Deploy
view in TIBCO Business Studio for BusinessWorks.
Applications can also be deployed from the administration framework using the bwadmin command
line utility.
Procedure
Result
Two folders are created and are visible in the Project Explorer, one for the application and one for the
application module.
Prerequisites
A text file is required, for example, c:\tmp\fileread.txt. Type a few lines in the file and save it.
Procedure
1. Select and drop a File Poller activity from the File palette to the Process Editor window.
To add an activity to the Process Editor, click the activity and drop it on the Process Editor. Do not
drag and drop the activity.
2. Select the Write File activity from the File palette. Click in the Process Editor next to the File Poller
activity. You see a gray overlay indicating where you can place the activity, along with the transition
arrow. When you drop the activity, the transition from the File Poller activity to the Write File
activity is created.
To create a transition between two activities click the transition icon and join both the
activities in the Process Editor.
3. Select the File Poller activity. In the Properties tab, select the General tab. Point to the file you
created as a prerequisite to this tutorial.
4. Select the Include Existing Files check box. When selected, the File Poller activity polls the existing
file regardless of the changes made. The specified file is periodically polled at the specified interval
even if the file has not changed. These changes may pertain to modifying, creating, or removing the
file.
The Polling Interval (sec): 5 (default) indicates the Frequency with which the File Poller
activity monitors this particular file. Any update to this file is transferred to the
output.log file through the Write File activity.
5. Save your project. Click File > Save or the Save button on the tool bar.
6. Select the Write File activity and click the General tab.
7. Click the button in the Filename field and specify the output location, such as, c:\tmp
\FilePoller\output.log. Also, select the Create Non-Existing Directories check box.
8. Click the Input tab to specify input to the Write File activity. Drag the FilePoller\fileContent
\textContent from the Data Source pane into the textContent field in the XPath Expression
pane. This writes the content of the polled file to the output file.
Result
The File Poller activity polls the fileread.txt file located in c:\tmp file every 5 seconds and any
changes made to the file content are written to the output.log file at c:\tmp\FilePoller by the Write
File activity.
Procedure
1. Right-click in the Process Editor and select the Debug BusinessWorks Applications option from
the menu. You can also click to start the debugger or choose Run > Debug.
The following messages are displayed in the Console view.
You are running the instance of the FilePoller application. When the debugger is launched, the
perspective changes from Modeling to Debug.
2. After the application starts, the File Poller and Write File activities get triggered and the content of
the fileread.txt is written to c:\tmp\FilePoller\output.log.
3. Modify the c:\tmp\fileread.txt file. For example, open the c:\tmp\fileread.txt file and write
"Hello BusinessWorks!" and save the changes.
The File Poller activity polls every 5 seconds and transitions the contents of the fileread.txt to
the Write File activity.
4. Open the file c:\tmp\FilePoller\output.log and verify the updated information, for example,
"Hello BusinessWorks!" printed in this file.
While keeping the application running, explore adding and deleting the words in the
fileread.txt file and notice the corresponding changes made to the output.log file.
5. The path taken by the engine for executing the process is displayed. Transitions turn green to
specify that a path was executed.
6. Click the Businessworks Jobs view on the top left to see the jobs created for the process.
7. Click a particular activity, then click the Job Data view on the top right to see the input and output
data of the activity.
8. To stop the current job, click the Stop button on the Console view toolbar.
Prerequisites
● PostgresSQL
● Required database and tables
● Most recent version of Google Chrome
For more information, see Installing PostgresSQL.
Installing PostgreSQL
This topic explains how to install the PostgreSQL database and create the database and tables required
for the Bookstore tutorial.
Procedure
2. Open a terminal window and navigate to the root folder of the PostgreSQL installation. Open pg-
env.bat and verify the path settings. Save the file if you make changes.
3. Start the server. Navigate to the bin folder of the install directory and type: pg-ctrl start
Enter the password you created for the superuser.
4. Open another terminal window and navigate to the BW_HOME\samples\binding\rest\BookStore
\scripts folder. Open readme.txt. On Unix systems, use the first command in the readme to start
the script from the psql window. On Windows, copy the second command to start the script from
the command line.
5. Navigate to the PostgreSQL bin folder and paste the command line into the terminal window.
Modify the command as needed. For Windows, use forward slashes in the command.
Run the command to create the database, the database tables, and to populate the database.
6. Open the PostgreSQL pgAdmin UI utility to see the database and tables.
Procedure
11. Double-click .
The process comprises:
12. Double-click an operation to display the process for example, BooksPersist > addBooks.
a) In the addBooks operation, you can see a JDBC activity.
b) The activity is repeated using a ForEach group.
c) addBooksOut represents the Reponse to the web service request.
13. To add a new process package named , right-click on Processes in the Project Explorer view, and
select New > BusinessWorks Package.
Procedure
1. To define a REST Resource named MyBooks, select tibco.bw.sample.rest > New > BusinessWorks
REST Resource.
The REST Service Wizard window opens.
4. Open the tibco.bw.sample.binding.rest.bookstore.db process in the Project Explorer and select the
BooksDB.bwp process. Drag it to the Process Editor and drop it on the implemented POST
operation.
A menu is displayed with two options: Create Invoke Activity and Create Reference and
Wire Process.
6. To update the POST process to invoke the appropriate external service operation:
a) Click the addBooks operation.
b) Select and drag the operation to the left of the postOut activity and drop it. An Invoke process
activity is created.
7. Click the newly added activity. Select the icon and connect addBooks to postOut.
8. Click the getAllBooks operation and select, drag, and drop the operation to the left of the getOut
activity in the OUT process.
9. Connect getAllBooks to getOut.
13. Drag the Book element from the left to the Book* element on the right.
14. In the pop-up window, select Make a Copy of each " Book" and click Finish.
The Input tab looks like this:
17. In the pop-up window, select the For each option and click Next. Click Finish on the Auto-Map
window. The Properties > Input tab looks similar to this:
20. Click the getOut activity in the Process Editor, and select the Properties > Input tab. Expand the
getAllBooks activity and choose Book* to map the Book* element from left to right. In the pop-up
window, choose Make a Copy of each " Book" and click Finish. The tab looks similar to this:
Result
Procedure
1. In the Project Explorer, expand the process and expand the Package Unit > Properties folder.
2. Provide valid values for the application properties including a valid user name, password, and
database URL to connect to your PostgreSQL database if different from the default setting.
3. Verify your JDBC connection.
a) Expand the Resources folder in the Project Explorer for the process.
b) Double-click JDBCConnectionResource.jdbsResource.
c) In the JDBC Driver section of the window, click Test Connection to verify the connection. If you
change the JDBC driver folder from the default, click Click Here to Set Preferences and set the
JDBC driver folder to the folder where you downloaded PostgreSQL JDBC Driver.
4. Click File > Save.
5. In the Project Explorer, expand the Processes directory if it is not expanded and double-click .
6. Click Run > Debug Configurations.
7. In the left-hand tree of the Debug Configuration wizard, expand BusinessWorks Application and
select BWApplication.
8. Click the Applications tab and then click the Deselect All button if you have multiple applications.
Select the check box next to .
9. Click Debug. This runs the sample in Debug mode.
The Console view is opened and shows engine messages similar to: .
10. In the Console view, press Enter to display the prompt: <>@BWEclipseAppNode>
Enter the OSGi command lrestdoc. This lists the Swagger UI URL as the discovery URL:
11. Launch the Google Chrome browser.
12. Open
13. Click Books or Events to see the operations. Click MyBooks to see the REST service operations you
just added. For more information, see the section Testing the POST and GET Operations .
14. Expand the Books and Events headers, and test out the operations as listed below.
Result
Click Books or Events in the Swagger UI to view the following operations for Books and Events:
Books
● Post books
● GET books
● GET book by ISBN
● PUT book by ISBN
● DELETE book by ISBN
Events
● POST Events
● GET Events
● GET Event by EventID
● PUT Event by EventID
● DELETE Event by EventID
GET books returns an output similar to the following:
{
"Book": [
{
"isbn": "0061122416",
"name": "The Alchemist",
"description": "Every few decades a book is published that changes the lives
of its readers forever. The Alchemist is such a book",
"authorName": "Paul Coelho",
"releaseDate": "2006-04-25",
"vintage": true,
"signed": true,
"price": 11.9
},
{
"isbn": "0071450149",
"name": "The Power to Predict",
"description": "How Real Time Businesses Anticipate Customer Needs, Create
Opportunities, and Beat the Competition",
"authorName": "Vivek Ranadive",
"releaseDate": "2006-01-26",
"vintage": false,
"signed": true,
"price": 15.999
}
]
}
GET books by ISBN returns an output similar to the following for ISBN 0061122416:
{
"isbn": "0061122416",
"name": "The Alchemist",
"description": "Every few decades a book is published that changes the lives
of its readers forever. The Alchemist is such a book",
"authorName": "Paul Coelho",
"releaseDate": "2006-04-25",
"vintage": true,
"signed": true,
"price": 11.9
}
Procedure
1. Click MyBooks. It expands and displays the POST and GET operations.
7. After you have finished, go back to TIBCO Business Studio™ for BusinessWorks™ and click in
the Console view to stop the process.
Troubleshooting
Your may encounter some errors while executing or running the process. The following are some of the
possible errors you may encounter and their resolutions.
Unable to insert rows into the Use the sample JSON payload from the sample json folder
database using the dbsetup.sql to post the data.
script in the scripts folder.
The REST Swagger UI page is not Verify that the application has started and that you are
visible. accessing the correct URL. Use the lrestdoc command in
the Console view to get the Swagger UI URL.
Problem markers are visible in the Clean the project by invoking Project > Clean or by
project. switching to a clean new workspace.
Getting the File was not found Ensure that the books.json and book_put.json files are
exception. present at the location described in the Input_File and
Input_File_1 module properties.
The PostgreSQL server does not start. Make sure you are not running as Administrator.
The database and database tables are Open the readme.txt file for the sample, located in the
not created. BW_HOME\samples\binding\rest\BookStore\scripts
folder. Run the dbsetup.sql script from a command line,
not the psql window.
Getting an unregistered user error Select all the check boxes in the Role Privileges tab in the
message while running the process. pgAdmin UI and run the process again. See the image
below.
Prerequisites
The REST service which you want to invoke must be accessible from the reference process at the time of
its invocation.
1. In the Project Explorer, completely expand the folder under Service Descriptors.
2. Select the /books under Books.json and drag and drop it to the right side of the process in the
Process Editor. The references are added to the process. The purple chevron indicates the service
and its operations.
3. In the Process Editor, right-click Add Activity > General Activities > Timer. Optionally, you can
configure the Sleep activity with IntervalInMillisec as 3000 in a similar manner and connect the
Timer with Sleep.
4. Drag the get operation under the purple chevron and drop it on the right of Timer activity (or Sleep
if configured) and connect the Timer activity with the get activity.
5. Drag the post operation under the purple chevron and drop it on the right of the get activity,
connect the get activity with the post activity.
6. Right-click the get activity select Show Properties View.
7. In the Properties view, select the Input tab and click Show Check and Repair icon in the icon bar on
the upper right corner of the Properties view.
8. Select the check box under Fix and click OK.
9. Click Show Check and Repair icon again.
10. Select the check box under Fix and click OK.
11. Select the post activity and right-click and select Show Properties View. In the Properties View,
select the Input tab and select Data Source tab.
12. Expand $get in the Data Source tab completely.
13. In the XPath Expression pane, expand the post-input completely.
14. Drag and drop Book* from the Data Source tab to the Book* under post-input in the XPath
Expression pane.
15. In the Drop dialog, select Make a copy of each "book" radio button and click Finish.
16. Click Show Check and Repair icon in the icon bar on the upper right corner of the Properties view.
17. Select the check box under Fix and click OK.
18. Click Show Check and Repair icon again. Select the check box under Fix and click OK.
19. In the Project Explorer, select Books.json under Service Descriptors of application module, and
right-click Open With > Text Editor and locate the "host" attribute. Make a note of the host name
and port number.
You can now test the REST service using the built-in tester and the Swagger UI. To do so follow these
steps:
3. Click the Applications tab, then click Deselect All if you have multiple applications.
4. Select the check boxes next to and .
5. Click Debug.. This runs the sample in debug mode. The Console view is opened and shows engine
messages similar to:
6. In the Debug view, expand and select get.
7. In the JobData view, you can see the job data of the get activity.
Administration Tutorial
The administration framework supports application deployment either through the bwadmin
command line utility or the Admin UI. The scripts provided can be used to set up runtime entities that
are useful for testing purposes. This tutorial walks you through running scripts and navigating runtime
entities in the Admin UI.
The administration framework contains:
®
● The Admin UI hosted on TIBCO Enterprise Administrator
● A powerful back-end bwagent designed to scale across large numbers of actual or virtual machines
to manage large scale deployment.
● A simple, flexible, and easy-to-use bwadmin command line utility.
This section shows how to:
● Create runtime entities (Domains, AppSpaces, and AppNodes) and upload and deploy archive files
using scripts.
● Start and stop applications using the Admin UI.
● Navigate runtime entities using the Admin UI.
For more information on runtime entities, see Administration Concepts in theTIBCO ActiveMatrix
BusinessWorks™ Concepts guide.
For more information on the commands used in this sample, see Getting Started in the TIBCO
ActiveMatrix BusinessWorks™ Administration guide.
Prerequisites
If you want to run scripts, the installation directory cannot contain one or more spaces. For example, on
Windows, TIBCO ActiveMatrix BusinessWorks™ should not be installed in the Program Files folder.
1. Optional. Install Enterprise Message Service™ 8.x or higher if you want to run the Acme.com
applications.
2. Optional. Install PostgreSQL 9.3.x if you want to run the Bookstore sample.
● Select the Utils and Net packages and change the option from Default to Install. Refer to the
following images that show the Utils and Net packages.
Utils Package
Net Package
Procedure
You can install TIBCO Enterprise Administrator in a separate TIBCO_HOME. If you choose to do
that, refer to Step 4.
3. Install TIBCO Enterprise Message Service 8.1, or compatible version, in the same TIBCO_HOME.
You can install TIBCO Enterprise Message Service in a separate TIBCO_HOME. If you have installed
TIBCO Enterprise Message Service in a separate TIBCO_HOME, refer to Step 4.
4. On UNIX: If you have installed TIBCO Enterprise Administrator and/or TIBCO Enterprise Message
Service in a separate <TIBCO_HOME> than ActiveMatrix BusinessWorks, open /opt/tibco/
bw-6.x/bw/6.x/scripts/bashrc.sh in a text editor and adjust TEA_HOME and EMS_HOME to
point to where you have installed them.
5. This step is applicable only to Windows OS. From a proper text editor (Do not use Notepad.exe),
open and edit c:/tibco/bw-6.x/bw/6.x/scripts/bashrc.sh. Search and replace all occurrences
of C:/ (or whatever letter drive you have installed ActiveMatrix BusinessWorks) with /
cygdrive/c/ (or /cygdrive/<drive-letter-where-you-installed-bw6>).
Adjust TEA_HOME and EMS_HOME to point to the location, where you have installed them.
6. Source the bashrc.sh script from your ~/.bashrc or ~/.profile files.
● On UNIX: Locate your ~/.bashrc or ~/.profile file and add the following line at the end:
source /opt/tibco/bw-6.x/bw/6.x/scripts/bashrc.sh
7. To verify that the environment variables are configured correctly, open a new command line
window, navigate to <TIBCO_HOME>/bw/6.x/scripts/admin/, and run ./bw6env.sh. This script
prints the required and optional environment variable configurations on the screen.
The script returns the environment variable configurations only if the environment
variables are set correctly.
The following is a sample output on UNIX:
Admin@WINAA-2:admin admin$ ./bw6env.sh
BW 6 Environment Configurations
● Running the runAll.sh script automatically updates the Admin "local" mode to
"enterprise" mode.
● You can use -clean option which cleans TIBCO Enterprise Administrator Server Data
Store and ActiveMatrix BusinessWorks™ Domain Data Store.
● This script may take up to 10 or 15 minutes to complete. To see how long it takes to run
the sample, run the time runAll.sh command to measure the time the script takes to
complete.
● If you don't want to run all the samples at the same time, then run the following
commands:
1. bootstrap.sh -clean
Running the bootstrap.sh -clean with the -clean option cleans the
TIBCO Enterprise Administrator server and the ActiveMatrix
BusinessWorks™ domain datastore. Use the -clean option only if you
want to clear the TIBCO Enterprise Administrator server and
ActiveMatrix BusinessWorks™ domain datastore.
2. runBookStore.sh - to run REST BookStore sample , or
3. runSamples.sh - to run other samples
10. Open a web browser and access the Admin UI at http://localhost:8777/tea
11. Log in using:
Username: admin
Password: admin
12. Click BusinessWorks in the Products list to see the following domains in the Domain Management
screen.
● Acme-QA-Domain
● Acme-UAT-Domain
● BookStore-Domain
● Samples-Domain
Drill down into any of the domains to see the created runtime entities, such as AppSpaces,
AppNodes, application archives, and applications.
Procedure
®
1. In the TIBCO Enterprise Administrator browser window, click TIBCO Enterprise Administrator
at the top of the page to open the home page.
2. Click the BusinessWorks icon in the Products list to display the Domains page.
The Domains Management page displays.
3. Click BookStore-Domain to drill down into domain details, then click Monitor to see the
dashboard.
5. To view the BookStore application deployed earlier, select Applications on the left.
A single application archive is displayed.
7. In the Applications view, click the link for REST Doc URL.
8. Test the deployed application in the Google Chrome browser using Swagger UI. Open
localhost:7777/tibco.bw.sample.binding.rest.BookStore.application.
9. To execute the REST operations exposed by the BookStore application, click the GET/books icon
and then click Try it Out!.
This displays a list of all books. Locate and copy an ISBN.
10. Click the GET/books{ISBN} icon to get a book by its ISBN.
11. Enter the ISBN and then click Try it Out!.
The book details can be seen in the Response Body.
Procedure
1. Navigate to the Domain Management page by clicking the TIBCO Enterprise Administrator icon
and choosing BusinessWorks in the Products area.
2. Choose the Acme-QA-Domain to see the Monitor page that shows the status of AppSpaces,
AppNodes, and applications.
3. Click AppSpaces in the side bar to display the AppSpaces page. (You can also click the AppSpace
icon on the Monitor page.) Change the view of the page by clicking the icons in the upper right of
the screen.
5. View the application archives by clicking Application Archives in the side bar.
For information about running the sample scripts, see the "Running Admin Sample Scripts" section in
the TIBCO ActiveMatrix BusinessWorks™ Getting Started guide.
This sets the TIBCO_HOME, BW_HOME, TEA_HOME, EMS_HOME, and JAVA_HOME environment
variables necessary to run the admin scripts.
All scripts support the -h and command-line argument with full documentation of what each script
does.
The scripts are updated to rely on the PATH setting to find the generic scripts. To make this easier to
configure, after installation you can generate $BW_HOME/scripts/bashrc.sh that can be sourced from
your ~/.bashrc.
Source the $BW_HOME/scripts/bashrc.sh to setup the following environment variables required to
run the scripts mentioned in the table below:
Variable Required
TIBCO_HOME Yes
BW_HOME Yes
®
TEA_HOME No. But required if you run TIBCO Enterprise
Administrator on this machine.
The following table lists some of the available scripts; browse the folder to see the complete list.
ActiveMatrix
BusinessWorks™ supports
both -sapp and -mapp modes.
The default is -mapp mode.
● killtea.sh
● killbwagent.sh
● tea.sh
● bwagent.sh
● registeragent.sh
By default, <$BW_HOME>/scripts/
admin/config/bwengine-group-
<dbtype>.sh
● BWAgentNetworkName - Name of
BWAgent Network.
● BWMachines - Defined as a list of
machine names (as obtained through
hostname -f). If you have only one
machine to configure, do not add it
to this list because this script auto-
configures it as a standalone
BWAgent Network.
This script uses hostname -f to
determine the name of the machine it is
run on. It then determines whether this
machine is in the BWMachines list.
You can assume that the discoveryURL
of the bwagent.ini is comparable to that
of a Database Server's URL, and
BWAgentNetworkName is then
comparable to the Database Name. You
can configure both to uniquely access
the specific instance of the Database.
If the KEEP_BWAGENT_INI environment
variable is defined, bwagent.ini
generation is skipped.
You can edit either the ./config/
bwadmin-default- config.sh file, or
make a copy of it, edit it, and then set
environment variable BWADMIN_CONFIG
to point to it. For example, export
BWADMIN_CONFIG=~/config/bwadmin-
my-config.sh
● tea
● bwagent
● bwappnode
● bwadmin
-h or -help - Prints this help message.
ActiveMatrix
BusinessWorks™ supports
both -sapp and -mapp modes.
The default is -mapp mode.
This script dynamically creates a
bwadmin command file in cmd/
<domain>-<mode>.cmd and executes it.
ActiveMatrix
BusinessWorks™ supports
both -sapp and -mapp modes.
The default is -mapp mode.
Generates the bwagent.ini file for
either Database/EMS™, or Database/
FTL® technology type.
ActiveMatrix
BusinessWorks™ supports
both -sapp and -mapp modes.
The default is -mapp mode.
This script dynamically
creates a bwadmin command
file in cmd/Samples-Domain-
<mode>.cmd and executes it.
● tibemsd
● tea
● bwagent
● bwappnode
● bwadmin