The boundary value problem of dislocation dynamics