The doubly charmed baryon (E)cc++ was recently observed by LHCb via the decay processes of (E)cc++→Λc+K-π+π+ and (E)c+π+.These discovery channels were successfully predicted in a framework in which the short-distance contributions are calculated under the factorization hypothesis and the long-distance contributions are estimated using the rescattering mechanism for the final-state-interaction effects.In this paper,we illustrate the above framework in detail by systematic studies on the two-body baryonic decays Bcc → BcP involving the doubly charmed baryons Bcc=((E)cc++,(E)cc+,Ωcc+),the singly charmed baryons Bc =(B(3),B6) and the light pseudoscalar mesons P =(π,K,η1,8).