There was plenty of coordination. JJ read and approved of his script and gave him dailies to watch as TFA was filmed, adjusting some things to transition more smoothly to the next movie. Executive producers are generally aware of what is happening in the movies they are paid for.