Thank you, Toritoribe-san and benten-san.
But my textbook says verb (volitional form) + としていた/としている means the action is about to happen (but has not happened yet). For example, 水が浴槽からあふれようとしている。(the water has not yet spilled over the sink) So whether the pattern verb (volitional form) + としていた/としている can mean the action has already happened depends on the context?