The success or failure of direct pulp capping depends on:
Quality and amount of blood flow
History of previous pain
Age of the patient
All of the above
The  direct  pulp  capping  procedure  has  been  known to be most  successful  in  younger  teeth  where  a  mechanical exposure is  a  dry sterile  field.