Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
By
Sudheer Nelluri
Raghu Nukala
Raja Sunkavalli
Prashanti Rao
Raghu Pullela
Contents
Contents
TIBCO Business Works
Role of XML
XML Activities
Parse Palette
Role of EMS
Benefits of BW
In JAVA
import java.io.*;
Benefits of BW (contd..)
Accelerates the application development and deployment cycle
Functions and data are available as re-usable services to use in
complex business processes
Improves the consistency, performance and scalability
Capable of integrating any IT resource virtually
Features of BW
Supports leading standards and protocols including HTTP/S, FTP,
JDBC, TCP and JMS
Extensive Web Services capabilities and support for SOAP over JMS
and HTTP/S
Enables distribution of information using technology that is best
suited for scenario
Provides built-in tool for defining XML schemas, parsing and
rendering capabilities
Role of XML
Designed to describe data
Software and hardware independent language for carrying
information
One of the most important technologies for business integration
both inside and across enterprises
XML Activities
Parse XML:
Processes a binary XML file or XML string and turns it into an XML
schema based on the XSD specified
Render XML:
Takes an instance of an XML schema element and renders it as a
stream of bytes containing XML or an XML string
Transform XML:
Allows us to transform an input XML document into the output specified by the givenXSLT
Fileshared configuration resource
XSLT File
Allows us to load an XSLT file to use to transform XML schemas using theTransform XMLactivity
Parse Palette
Data Format:
It contains the specification for parsing or rendering a text string
using the Parse Data and Render Data activities
Parse Data:
Takes a text string or input from a file and processes it, turning it
into a schema tree based on the specifiedData Format shared
configuration
Role of EMS
Enterprise messaging allows different systems to
communicate with each other
Enterprise Message Service is the TIBCOs
implementation of Java Message Service.
It obey the Java Message Service specifications
Some features like load-balancing, routing and fault
tolerant configurations are added to TIBCO EMS
Benefits of EMS
Reduces the cost and complexity of integrating
different systems
Increases flexibility and promotes greater service
reuse
Improves the performance, scalability and reliability of
distributed system communication
File Palette
File palette
CONTENTS:
Copy file
Create file
File poller
List files
Read file
Remove file
Rename file
Wait for file change
Write file
COPY FILE:
It used for coping a file.
In input we can give the source file(fromfilename) which is to be copied.
Destination folder (tofilename) at which the copied file is pasted.
Create
create is used to create files and directory
Just we need to give our indented file name or directory name and location as input
FILE POLLER
It is a starter activity
File poller can detect any changes in a
file at particular location at regular
intervels of time.
The input to the file poller is a location
of files or a particular file.
We can also check for a specific event
by select the options
LIST FILES
List files is used for listing all the files and directories in a location ie.. Folder.
Input to the list files activity is the desired location.
The output of the list files contains the file name size and last modified date also.
READ FILE
REMOVE FILE:
Remove file was used to delete the file.
It deletes the file permanently from our system we cant able to find the removed file in
recycle bin.
The input to the remove file is the file name we want to remove.
RENAME FILE:
Rename file is used for changing a file name.
We can also use the rename file for moving a file.
For renaming a file we have to give the existing file name and desired file
name.
WRITE FILE
Write file is used for writing text content into the file
It can create non existing directories also
Protocol
Common set of rules and instructions that each computer follows
HTTP Protocol
Hyper text transfer protocol
Application layer protocol
Works as a Request Response model
Usually works on 8080 port in association with TCP protocol and on 80
port with UDP
HTTP Palette
Used to communicate with web server through HTTP Palettes.
Consists of six activities ( 2 at project level, 4 at process level)
HTTP Palette
HTTP Connection: Describes the connection properties . Necessary if we use
either HTTP receiver or wait for HTTP request
HTTP Proxy : Useful when we want to send requests outside the firewall to a
proxy server(HTTP)
HTTP Receiver : It is process starter activity which will be triggered once it gets
a HTTP request.
Send HTTP Request: Asynchronous activity that sends an HTTP request and
waits for a response from the Web Server
Groups in TIBCO
Groups are used to segregate certain actions together.
Used for iterations
Used for repeating a group of activities or a single activity for a specific number
of times
Ex: if we want to repeat a sub process for 10 times we will use a group action.
Group Actions
1) Iterate
2) Repeat until true
3) Repeat on error until true
4) Transaction
5) Critical section
6) Pick first
7) While true
8) if
Iterate :
Used to iterate group once for every item in the list
Iterate can be of any number of times depending on the loop condition
Input
Iterate action on a
group
Output
Fail
Input
Group with a
condition defined
True
Exit Loop
Input
Group with
repeat on error
for n times
No Error
Error
Critical Section :
Synchronize process instances so that only one process instance executes the
grouped activities
Other process keeps waiting until the process instance that is currently executing
critical section completes
Process 1
Process 2
Group with
critical section
While True:
Repeat as long as the defined condition evaluates as true
If the condition evaluates as false exit the group
Input
Group
Evaluate
condition first
True
Fail
Mapper Activity
Input Schema:
We can always give the input schema structure in the
Output Editor of Start activity.
Output Schema:
The output schema structure can be specified in the
Input Editor of the Mapper Activity.
When you perform mapping, simple mappings appear in the formula area
next to the input element after you release the mouse button. For more
complex mappings, the Mapping Wizard dialog allows you to select which
kind of mapping you wish to perform.
Input:
Output:
Statements:
There are some statements that are used to convert a
hint into a statement without performing any mapping.
They are as follows:
Surround
Surround
Surround
Surround
With
With
With
With
If
For Each
For Each Group
Choice
Statements(Cont..)
When you select an element in the Activity Input
schema and right-click, a popup menu appears. The
Statement menu item contains several sub-items that
are useful shortcuts for creating statements.
Variables:
There are four types of variables available in TIBCO BW. They
are
Global Variables
Process Variables
Shared Variables
Job shared Variables
Global Variables:
Global variables are the static variables and they can be set during
the run time.
TIBCO Global variables allow you to specify constants that can
be used throughout the project.
Advantages:
1) Easy Reuse of variables in multiple places in the project
2) Easy to change global variables value in TIBCO
Administrator.
ProcessVariables:
Shared Variables
Shared variables allow you to specify data for use across multiple process instances.
Get Shared Variable and Set Shared variable activities are used for retrieving and setting the data
for a shared variable.
Job-Shared Variables
A Job Shared Variable resource is similar to a Shared Variable, but its scope is limited to
the current job.
Get Shared Variable and Set Shared variable activities are used for retrieving and setting
the data for a shared variable.
Data-Base Concepts:
A database is an organized collection of data so that we can access
the data easily.
It stores the data in the form of files. It can store data in the form of
tables, but there will be no relation between the tables. So, we go for
Relational Data Base management systems.
SQL:
SQL stands for Structured Query Language. SQL is the standard
language for relational database management systems.
SQL Commands:
Create
Select
Insert
Update
Delete
Drop
What is JDBC?
JDBC is a Java API that can access any kind of tabular data, especially data
stored in a Relational Database
Action
JDBC Query
JDBC Update
SQL Direct
Thank You