Creating a new self-define processor

About this task
To create a new self-define processor using Transaction Editor, do the following steps:
  1. Creating a Java™ project in RAD.
  2. Add BTT nature to the project just created. Right-click the project and select BTT Tools > Add BTT Nature. Then the selected btt.xml file becomes the BTT nature file. For more information, see Adding and removing BTT nature
  3. Create a folder named transaction in the Java Project.
  4. Right-click the folder, and select New > Other.... Expand BTT, and select Transaction, and click Next. The dialog box for creating a new transaction pops up. By default, the transaction file name is BTTTransaction.transaction. Following is a screen capture:

    Screen capture of the create a new transaction dialog

  5. You can choose to create a processor directly or using templates.
    • To create a processor directly, click Next, and you are prompted to choose the transaction type. Following is a screen capture:

      Screen capture of the choosing transaction type dialog

      Select Self-defined Processor, and select a Processor type, and then click Finish. A Processor transaction is created and opened. There are six tabs in the Transaction Builder Editor for Processor transaction: Processor, Operation, Context, Data, Format, and Service.
      Note: For the configuration information about each processor type, refer to com.ibm.btt.tools.transaction.dominate_7.0\config\btt.xml. These processors are different from each other in that each processor corresponds to a different class.
    • To create a processor using templates, select the Create a transaction using templates checkbox, and click Next. You are prompted to choose one of the available processor templates to generate a transaction. Select one template and click Finish. Then the new processor is created and automatically opened.
      Note: You can define your transaction file as a template. Right-click the transaction file, and select Save As BTT Transaction Template in the pop-up menu. This transaction file will be displayed as one of the available templates the next time when you create a new Transaction using templates.