What is a BTS application?
A BTS application is an application written using the CICS® business transaction services API to take advantage of CICS business transaction services.

- Initial Request
- A CICS transaction that starts a CICS business transaction services process.
- Process
- A collection of one or more BTS activities. It has a unique
name by which it can be referenced and invoked. Typically, a process
is an instance of a business transaction.
In the vacation example, an instance of the business transaction might be started to sell Jane Doe a vacation in Florida. To identify this particular transaction as relating to Jane Doe, the process could be given the name of Jane Doe's account number.
- Activity
- The basic unit of BTS execution. Typically, it represents one
of the actions of a business transaction—in the vacation example,
renting a car, for instance.
A program that implements an activity differs from a traditional CICS application program only in its being designed to respond to BTS events. It can be written in any of the languages supported by CICS.
Activities can be hierarchically organized, in a tree structure. An activity that starts another activity is known as a parent activity. An activity that is started by another is known as a child activity.
- Root activity
- The activity at the top of the activity tree - it has no parent
activity. A process always contains a root activity. When a process
is started, the program that implements its root activity receives
control. Typically, a root activity is a parent activity that:
- Creates and controls a set of child activities - that is, it manages their ordering, concurrent execution, and conditional execution
- Controls synchronization, parameter passing and saving of state data.
- Data-container
- A named area of storage, associated with a particular process or activity, and maintained by BTS. Each process or activity can have any number of data-containers. They are used to hold state data, and inputs and outputs for the activity.
- Event (not shown in Figure 1)
- A BTS event is a means by which CICS business transaction services signal progress in a process. It informs an activity that an action is required or has completed. “Event” is used in its ordinary sense of “something that happens”. To define an event recognizable by CICS business transaction services, such a happening is given a name.
- Timer (not shown in Figure 1)
- A BTS object that expires when the system time becomes greater
than a specified date and time, or after a specified period has elapsed.
Each timer has an event associated with it. The event occurs ("fires")
when the timer expires.
You can use a timer to, for example, cause an activity to be invoked at a particular time in the future.
- Manages many business transactions (processes).
- Records the status of each business transaction.
- Ensures that each activity is invoked at the appropriate times.
The components of a BTS application, and how they relate to each other, are described in more detail in Using the BTS API to write business applications.