One way to do this would be to use a deformer on the spline/object, with the deformer being a sibling. Then animate the rotation of the spline/object and animate the whole shebang along a spline. You can look up the formula for end rotation value and get the length of your spline using Xpresso’s spline node.