How to decide on stent insertion or surgery in colorectal obstruction?

How to decide on stent insertion or surgery in colorectal obstruction?