Boundary condition dependency

Hello all

I want to perform a transient flow simulation. When Surface temperature at a surface increase more than 30 C, i want the coolant fluid enter the system at a particular volume flow rate (say  2 m3/s with temp 20 C) and cool the system and exit through the outlet . The Coolant flow has to be cut off when the temperature of the surface goal reaches 30C.

How can i define the BC which is dependent on Surface temp? 

Thank you all

-Muralli#

SolidworksSimulation