To extend the processor transition and its property, do the following:
- Create a new class extending com.ibm.btt.automaton.TransitionDescriptor,
which is located in bttcore.jar.
- Open btt.xml file, and find the processors section. Add the
following code to the classtable configuration:
field id="newTransition" value="package.NewTransition" /
- 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 extend the property of the processor transition, add the following
code to the class you created:
import com.ibm.btt.annotation.ATTR;
@ATTR( { "newProperty1#String#REQUIRED","newProperty2#String#IMPLIED"})
where:- newProperty1 is the property name;
- String is the property type;
- REQUIRED refers to if the property is required or implied.
- By default, the properties of the parent class are extended. If you do
not want to extend the properties of the parent class, you can add the configuration
as follows: @EXTEND("no").