Replace 15 year old dishwasher?

I have a 15 year old Whirlpool dishwashwer which we think needs a new solemoid valve. Is it worth hiring the repairman and buying the part to fix, or just get a new one?

Depends on the condition of the dishwasher.

Gene.