New Operation Type

How could I create new operation type? Do we have any guide or tutorial?