About this task
When creating an operation, you can either create a global operation
or a local operation. Do the following steps to create a new operation:
- Create the operation classes:
- To create a global operation class, do the following:
- Create a new class extending com.ibm.btt.base.BTTOperation, which is located
in bttcore.jar. See the following screen capture:
- Open btt.xml file, and find the operation section. Add the following code
to the classtable configuration:
field id="newOperation" value="package.NewOperation" /
- If your Transaction Editor is opened before you define the extensions,
right-click any blank space in the editor and select Reload BTT
Global Settings in the pop-up menu so that your changes can be
applied.
- To create a local operation class, you can create a new class
extending com.ibm.btt.base.BTTOperation, which is located in bttcore.jar.
- Create operation:
After you created the operation classes, double-click
the transaction to open the Transaction Editor. In the
Operation tab,
right-click anywhere in the Operation Editor area, and select .
The Operation Creation Dialog opens. There are three options, as shown in
the following screen capture:
- After you created the operation, right-click it in the Operation Editor,
and you can add children to the operation. Following is the screen capture:
- Click refFormat to create a reference formatter
for the operation. In the RefId filed of the Detailed
Information section, click
to select a global or local formatter; in the Name filed,
enter the name of this refFormat.
- Click opStep to create an operation step for the
operation. For more information about operation step, see Creating operation steps for an operation.
- Click iniValue to create an initial value for the
operation. In the Detailed Information section, enter
the name and value.