The invention concerns to a method for controlling the operation of a wood-handling device (14) in a work machine (10), which wood- handling device is attached through a rotation device (13) to the end (19) of the set of booms (12) of the work machine in order to create the desired orientation of the wood-handling device for the operation and in which method the orientation of the wood-handling device performed using the rotation device is tied on the basis of the operation to be performed using the set of booms. The orientation of the wood-handling device is tied to the position (A C) of the end of the set of booms, the position of the end of the set of booms is defined while performing the operation, on the basis of the position of the end of the set of booms, the wood- handling device is oriented using the rotation device, according to the said tie. In addition, the invention also relates to a corresponding arrangement and a forest machine.