Beruflich Dokumente
Kultur Dokumente
Render XML:
Takes an instance of an XML schema element and renders it as a stream of bytes
containing XML or an XML string
XML Activities (contd..)
Transform XML:
Allows us to transform an input XML document into the output specified by
the given XSLT File shared configuration resource
XSLT File
Allows us to load an XSLT file to use to transform XML schemas using
the Transform XML activity
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 specified Data Format shared configuration
Parse Palette (contd..)
Render Data:
Takes an instance of a data schema and renders it as a text string. The schema
processed is based on a specified Data Format shared configuration
Role of EMS
Enterprise messaging allows different systems to communicate with
each other
Enterprise Message Service is the TIBCO’s 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
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
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.
WAIT FOR FILE CHANGE
It is a non starter process
It pause the process until the changes are made in the location which is specified
WRITE FILE
Write file is used for writing text content into the file
It can create non existing directories also
Groups and HTTP Palette
What is a Protocol
Http Introduction
Http palette
Groups in TIBCO
Types of Group Actions
Protocol
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
Wait for HTTP Response : Waits for an incoming HTTP request in a process. The process
instance suspends until the incoming HTTP request is received.
Iterate action on a
Input group Output
Repeat until true:
No Error
Input Execute and exit
Group with repeat
Error
on error for n times Keep repeating for N times and
exit
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
Group with critical Process 1 executes group first
Process 2 section
Process 2 keeps waiting until the other is
completed and then executes group
While True:
• Repeat as long as the defined condition evaluates as true
• If the condition evaluates as false exit the group
Group True
Execute and repeat
Input
Evaluate condition Fail
first Exit without execution
Mapper Activity
What is Mapper Activity?
• The Mapper is a synchronous activity that adds a new process variable
to the process.
• This variable can be an inline schema, primitive element, or a complex
element.
• The Mapper activity adds a new process variable to the process
definition.
• Mapper activity is used to convert one XML structue into another
XML structure.
• It can be used to write your logics.
• You can find Mapper Activity in General Activities.
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.
How do we use Mapper Activity?
• When an activity is first dragged from a palette to the design panel, the activity’s input
elements are displayed as hints. These hints show you the data the activity expects as
input. Each element can be required or optional or repeating. Required elements must
have a mapping or formula specified.
• You map data by selecting an item in the Process Data panel, then
drag and drop that item into the desired schema element you wish
to map in the Activity Input panel.
• 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.
• Most options in the Mapping Wizard dialog are straightforward.
However, there are some complex scenarios that require multiple
steps.
• You can specify XPath formulas to transform an element if you need to perform more
complex processing.
• The XPath Formula Builder allows you to easily create XPath formulas.
• 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 With If
– Surround With For Each
– Surround With For Each Group
– Surround With 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.
• Surround with If:
– An if statement is used to surround other statements in an XSLT template
to perform conditional processing.
– If the test attribute evaluates to true, the statements in the if are output,
otherwise they are not output.
• Surround with For-Each:
– A shortcut for moving the current element into a For-Each statement
performs the specified statements once for each item in the selected
node.
– This is useful if you wish to process each item of a repeating element once.
• Surround with For-Each-Group:
– A shortcut for moving the current element into a For-Each-Group statement and adding a
Group-By grouping statement.
– Groups the items in a list by a specified element. This statement requires a Grouping statement
to specify which element to group-by.
– You may need to convert a flat list of items into a more structured list. For example, you may
have list of all orders that have been completed. You may want to organize that list so that you
can group the orders placed by each customer.
– This scenario typically occurs when you retrieve records from a relational database and the
records must be structured differently.
• Surround with Choice:
– A shortcut for adding a choice statement and its associated conditions or
otherwise statements around the currently selected element.
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.
Process Variables:
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 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
Activity Action