Runtime tools : Core components : Operations : Tasks : Extending operations
  
Extending operations
To extend operations, do one of the following:
Create classes that implement one of the operation interfaces: Operation, ClientOperation, and ServerOperation
Extend one of the basic operation classes provided by the toolkit: BTTOperation, BTTClientOperation, and BTTServerOperation
In general, you should first create a small set of generic operations that implement any of the interfaces or extend any of the basic operation classes. Each generic operation addresses a generic operation flow. You then extend the generic operations to create specific operations that have specific behavior. Create a set of reusable operation steps and, whenever possible, use these steps to implement the operation's flow.
For applications that use the Java Channel or require a separation of client and server operations, create subclasses implementing the ClientOperation or ServerOperation interfaces or extending BTTClientOperation or BTTServerOperation to create operations for execution in each environment. A generic operation should address the generic behavior for all the operations and you should only need a few of them. These must contain almost all the code needed for all the operations and they must also include the corresponding exits that extending operations are to execute.
Note Instead of defining generic operations, you can define a set of generic flows that concatenate operation steps.
Go up to
Tasks