We introduce the category of flows and an equivalence relation on it called weak dihomotopy. The category of globular CW-complexes introduced in math.AT/0107060 can be embedded in a canonical way into the category of flows. This embedding induces a category equivalence from the category of globular CW-complexes up to dihomotopy and the one of flows up to weak dihomotopy. This statement is proved thanks to a directed version of Whitehead's theorem (the one concerning the equivalence between weak homotopy and homotopy for CW-complex). So studying HDA up to dihomotopy is equivalent to working within the category of flows. This setting is better than the one of globular CW-complexes because the category of flows is complete and cocomplete.