A class of stochastic optimal control problems with state constraint.