Extending processor transition and its property

About this task
To extend the processor transition and its property, do the following:
  1. Create a new class extending com.ibm.btt.automaton.TransitionDescriptor, which is located in bttcore.jar.
  2. Open btt.xml file, and find the processors section. Add the following code to the classtable configuration:
    field id="newTransition" value="package.NewTransition" /
  3. 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.
  4. 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").