In this paper, we are concerned with preservation properties of first and second order by an operator L representable in terms of a stochastic process Z with non-decreasing right-continuous paths. We introduce the derived operator D of L and the derived process V of Z in order to characterize the preservation of absolute continuity and convexity. To obtain different characterizations of the preservation of convexity, we introduce two kinds of duality, the first referring to the process Z and the second to the derived process V. We illustrate the preceding results by considering some examples of interest both in probability and in approximation theory - namely, mixtures, centred subordinators, Bernstein polynomials and beta operators. In most of them, we find bidensities to describe the duality between the derived processes. A unified approach based on stochastic orders is given.