Given a smooth vectorbundle $E\to B$ with connection $\nabla$, the (real or complex) characteristic classes of $E$ are the cohomology classes of the Chern-Weil forms associated to $\nabla$.
Suppose $E$ is complex, and that we have a form $\omega\in \bigoplus_i \Omega^{2i}(B;\mathbb R)$ which represent $ch(E)$. Is there a connection $\nabla$ on $E$ such that $\omega=ch(\nabla)$? I'm pretty sure the answer is no; if I take the Chern-character forms of one connection in some degrees, and of another connection in other degrees, it seems unreasonable to expect there to be a third connection with the resulting combination of Chern-character forms. I would love to see a concrete example though. Also, it clearly sometimes happens that a form is the Chern-Weil form of a connection, and I wonder when:
Are there any known conditions we can impose on $\omega$ to ensure the existence of a connection $\nabla$ with $ch(\nabla)=\omega$?