Medieval foreign policy was also shaped by relations with the Flemish cloth business . Medieval foreign policy was as much shaped by relations with the Flemish textile industry as it was by dynastic adventures in western France .